コード例 #1
0
ファイル: GameOverlord.cs プロジェクト: Gerglamesh/EggHunt
 private void Awake()
 {
     if (gameOverlordInstance != null && gameOverlordInstance != this)
     {
         Destroy(this.gameObject);
     }
     else
     {
         gameOverlordInstance = this;
     }
 }
コード例 #2
0
 private void Start()
 {
     gameOverlord = GetComponent <GameOverlord>();
 }
コード例 #3
0
    void Start()
    {
        gameOverlord = FindObjectOfType <GameOverlord>();

        DetermineRelease();
    }