// Use this for initialization public override void Start() { flyTime = 5f; projectileVelocity = 1000; timer = new EventTimer_Base(flyTime); rigidbody.velocity = transform.forward * projectileVelocity; }
public void initTimer(float life, float speed) { cameraPos = GameObject.Find("ImageTarget").transform; lifeSpan = life; objectVelocity = speed; timer = new EventTimer_Base(lifeSpan); }
public void setSpawnBase(int levelNumber, int enemytospawn, int[] enemyType, float spawnTime) { spawnRate = spawnTime; numberOfEnemies = enemytospawn; enemyTypes = enemyType; spawnBase = gameObject.AddComponent <Enemy_Spawn>() as Enemy_Spawn; spawnBase.forceStart(levelNumber); spawnBase.enemiesToSpawn = numberOfEnemies; spawnEmpty = false; timer = new EventTimer_Base(spawnRate); }
// Use this for initialization public override void Start() { flyTime = 7f; projectileVelocity = 30; timer = new EventTimer_Base(flyTime); }
public void initTimer(float life) { lifeSpan = life; timer = new EventTimer_Base(lifeSpan); }
protected virtual void Start() { versionControl = GameObject.Find("ARCamera").GetComponent <Player_Charactor>().gameSetting; spawnRate = 2f; timer = new EventTimer_Base(spawnRate); }