Example #1
0
 public EnemySystem()
 {
     if (Instance)
     {
         Destroy(gameObject);
         return;
     }
     Instance = this;
 }
Example #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();
        }