コード例 #1
0
ファイル: EnemySystem.cs プロジェクト: A-R-Qazi/AI-System
 public EnemySystem()
 {
     if (Instance)
     {
         Destroy(gameObject);
         return;
     }
     Instance = this;
 }
コード例 #2
0
        // Start is called before the first frame update
        void Start()
        {
            _player = Instantiate <Player>(playerResource);
            _player.transform.position = PlayerStart.position;
            _player.transform.rotation = PlayerStart.rotation;

            EnemySystem e = EnemySystem.Instance;

            e.UpdateEnemies();
        }