コード例 #1
0
 // Use this for initialization
 public override void Start()
 {
     flyTime            = 5f;
     projectileVelocity = 1000;
     timer = new EventTimer_Base(flyTime);
     rigidbody.velocity = transform.forward * projectileVelocity;
 }
コード例 #2
0
 public void initTimer(float life, float speed)
 {
     cameraPos      = GameObject.Find("ImageTarget").transform;
     lifeSpan       = life;
     objectVelocity = speed;
     timer          = new EventTimer_Base(lifeSpan);
 }
コード例 #3
0
 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);
 }
コード例 #4
0
 // Use this for initialization
 public override void Start()
 {
     flyTime            = 7f;
     projectileVelocity = 30;
     timer = new EventTimer_Base(flyTime);
 }
コード例 #5
0
 public void initTimer(float life)
 {
     lifeSpan = life;
     timer    = new EventTimer_Base(lifeSpan);
 }
コード例 #6
0
 protected virtual void Start()
 {
     versionControl = GameObject.Find("ARCamera").GetComponent <Player_Charactor>().gameSetting;
     spawnRate      = 2f;
     timer          = new EventTimer_Base(spawnRate);
 }