コード例 #1
0
 void Awake()
 {
     EplayerHealth = gameObject.GetComponent <EnemyHealth>();
     Emt           = gameObject.GetComponent <EnemyMoveTest>();
     EShots        = GameObject.FindGameObjectWithTag("EnemyBulletSpawn");
     sp1           = GameObject.FindGameObjectWithTag("sp1");
     sp2           = GameObject.FindGameObjectWithTag("sp2");
     sp3           = GameObject.FindGameObjectWithTag("sp3");
 }
コード例 #2
0
    void Awake()
    {
        PlayerObject  = GameObject.FindGameObjectWithTag("Enemy");
        EplayerHealth = PlayerObject.GetComponent <EnemyHealth>();

        Emt    = gameObject.GetComponent <EnemyMoveTest>();
        EShots = GameObject.FindGameObjectWithTag("EnemyBulletSpawnph1");
        sp1    = GameObject.FindGameObjectWithTag("sph11");
        sp2    = GameObject.FindGameObjectWithTag("sph12");

        Emt.GetComponent <EnemyMoveTest>().Speed = 1;
        EShots.SetActive(false);
    }
コード例 #3
0
ファイル: phases2.cs プロジェクト: Torhu/Pj-Touhou-game
 void Awake()
 {
     EplayerHealth = gameObject.GetComponent <EnemyHealth>();
     Emt           = gameObject.GetComponent <EnemyMoveTest>();
     EShots        = GameObject.FindGameObjectWithTag("EnemyBulletSpawn");
     EShots2       = GameObject.FindGameObjectWithTag("pls");
     sp1           = GameObject.FindGameObjectWithTag("sp1");
     sp2           = GameObject.FindGameObjectWithTag("sp2");
     sp3           = GameObject.FindGameObjectWithTag("sp3");
     sp4           = GameObject.FindGameObjectWithTag("sp4");
     Emt.GetComponent <EnemyMoveTest>().Speed = 1;
     EShots.SetActive(false);
     EShots2.SetActive(false);
 }