コード例 #1
0
ファイル: BossAttack1.cs プロジェクト: LukasRmk/DungeonEscape
 // Start is called before the first frame update
 void Start()
 {
     character      = GameObject.FindGameObjectWithTag("Player").GetComponent <CharacterMov>();
     target         = GameObject.FindGameObjectWithTag("Player").GetComponent <Transform>();
     boss           = GameObject.FindGameObjectWithTag("Boss").GetComponent <bOSS>();
     beg            = GameObject.FindGameObjectWithTag("Boss").GetComponent <ghostFollow>();
     maxHealth      = boss.health;
     TimeBtwAttack2 = TimeBtwAttack / 2;
 }
コード例 #2
0
ファイル: spyglys.cs プロジェクト: LukasRmk/DungeonEscape
 // Start is called before the first frame update
 void Start()
 {
     character = GameObject.FindGameObjectWithTag("Player").GetComponent <CharacterMov>();
     boss      = GameObject.FindGameObjectWithTag("Boss").GetComponent <bOSS>();
     scene     = SceneManager.GetActiveScene();
 }