private GameObject FoundRodent(GameObject _TMPlastClicked) { _lastRodent = _TMPlastClicked.transform.parent.GetComponent <Rodent>(); if (_printStatements) { Debug.Log("Clicked a Rodent"); } if (_lastRodent.getTeam() == 0) { _lastRodent.imClicked(); _recruitDummy = true; } else if (_lastRodent.getTeam() == 1) { _lastRodent.imClicked(); _recruitDummy = true; } return(_lastRodent.gameObject); }
private GameObject FoundSpawnVolume(GameObject _TMPlastClicked) { _lastRodent = _TMPlastClicked.GetComponent <Rodent>(); if (_printStatements) { Debug.Log("Clicked a Rodent through spawn volume"); } if (_lastRodent.getTeam() == 0) { _lastRodent.imClicked(); _recruitDummy = true; } else if (_lastRodent.getTeam() == 1) { _lastRodent.imClicked(); _recruitDummy = true; } return(_lastRodent.gameObject); }