Commit d0e3b581 authored by Luke A Smith's avatar Luke A Smith

Merge branch 'WallProjectileTrap' into 'master'

Added WallProjectileTrap Script

See merge request !34
parents 1adf727f 113ca665
fileFormatVersion: 2
guid: 3f69cf60d3105914bacdd6f4714c0732
timeCreated: 1479601880
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 7f22a116230fac449b0aba6f00875b4d
timeCreated: 1479601888
licenseType: Free
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 90809fca9c1d0eb44a3dbe384eaac91b
timeCreated: 1479601888
licenseType: Free
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: d28e37e53d221f444ae4f505b4933f64
timeCreated: 1479601888
licenseType: Free
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 906231cf7d8afa14d8f725a179188852
timeCreated: 1479601881
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: b6308e0fc687f1b42b73f82957f4e001
folderAsset: yes
timeCreated: 1479601880
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 4b3cbce46332f5343a63d7723921a1f5
timeCreated: 1479601881
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: d8ef5b1b7ddcf1e46a43c91701e26700
timeCreated: 1479601881
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 9256e360254dcb34a96201e35e0d4461
timeCreated: 1479601881
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: c6a11353adf062a4eb682336111f7133
timeCreated: 1479601881
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 0d2b2533797dcb64ab4464d20b179373
timeCreated: 1479601881
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 9f98cd3c6c66fbd46bdf4141365cf2aa
timeCreated: 1479601881
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
using UnityEngine;
using System.Collections;
public class WallProjectileTrap : MonoBehaviour {
public int timeInterval = 1;
public float force = 1;
public Vector2 vector;
private ShootSuff s;
public GameObject obj;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update ()
{
if(Time.time % timeInterval == 0)
{
//shoot projectile
s.Shoot(obj, vector.normalized, force);
}
}
}
fileFormatVersion: 2
guid: 2884a0c7c51430543ac128e756516060
timeCreated: 1479601938
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment