コード例 #1
0
ファイル: Player.cs プロジェクト: Krosantos/SpaceInvaders
    void Start()
    {
        switch(PersistentBeat.difficulty){
        case 0:
            PersistentBeat.lives = 4;
            ammo = 10;
            break;
        case 1:
            PersistentBeat.lives = 2;
            ammo = 7;
            break;
        case 2:
            PersistentBeat.lives = 0;
            ammo = 5;
            break;
        }

        God = GameObject.FindGameObjectWithTag("God").GetComponent<Audiogogue>();
    }
コード例 #2
0
ファイル: Laser.cs プロジェクト: Krosantos/SpaceInvaders
 void Start()
 {
     //Give a maximum lifetime to the object.
     GameObject.Destroy(gameObject, 15f);
     God = GameObject.FindGameObjectWithTag("God").GetComponent<Audiogogue>();
 }
コード例 #3
0
ファイル: Alien.cs プロジェクト: Krosantos/SpaceInvaders
 public virtual void Start()
 {
     StartCoroutine("checkFront");
     StartCoroutine("shoot");
     God = GameObject.FindGameObjectWithTag("God").GetComponent<Audiogogue>();
 }