/* public void SetEnemyTransform(Transform _transform) * { * enemyTransform = _transform; * }*/ public void SetEnemy(GameObject _enemyObject) { enemy = _enemyObject; enemyAnim = _enemyObject.GetComponent <Animator>(); stealthZone = _enemyObject.GetComponentInChildren <StealthZone>(); Debug.Log(_enemyObject.name); }
public void UnSetEnemy() { enemy.GetComponent <Enemy>().LeaveTheGrab(); enemy.GetComponent <CharacterController>().radius = 1.4f; enemy = null; enemyAnim = null; stealthZone = null; //Debug.Log("UnSetEnemy"); }