private void NotifyAgentOfPos(Vector3 lastSeenLocation, EnemyAgent agent, bool pDevice) { if (!(agent.GetState() is ChaseState)) { agent.LastSeenTargetPosition = lastSeenLocation; } }
private void Laser() { _turretPoint = _turret.transform.position; if (_agent.GetState() is AttackState) { Debug.Log("SHOULD BE DRAWING A LASER"); LaserLine.SetPosition(0, _turretPoint); LaserLine.SetPosition(1, Player.transform.position); } else { //MAKE LINE INVISIBLE!!! } }