// Use this for initialization void Start() { player = spawnGoodGuy.GetComponent<GoodGuy>(); enemy = SpawnBadGuy.GetComponent<BadGuy>(); heroCheck = GameObject.Find("GameController").GetComponent<HeroCheck>(); }
// Use this for initialization void Start() { player = spawnGoodGuy.GetComponent <GoodGuy>(); enemy = SpawnBadGuy.GetComponent <BadGuy>(); heroCheck = GameObject.Find("GameController").GetComponent <HeroCheck>(); }