Beispiel #1
0
 // Use this for initialization
 void Start()
 {
     _player      = GameObject.FindGameObjectWithTag(Tags.playerTag);
     _spawnPoints = GameObject.FindGameObjectsWithTag(Tags.flowAreaTag);
     _ts          = gameObject.GetComponent <ThreatSystem>();
     StartCoroutine(SpawnWhiteCells());
     StartCoroutine(SpawnRedCells());
 }
 // Use this for initialization
 void Awake()
 {
     _player       = GameObject.FindGameObjectWithTag(Tags.playerTag).GetComponent <Player>();
     _threatSystem = GameObject.FindGameObjectWithTag(Tags.gameManager).GetComponent <ThreatSystem>();
 }