void UpgradeFadeLevel(Eyesight u) { if (hasConstruction) { Remove(); } }
protected override void Update() { if (firstRun) { biting = RegisterInteraction <Biting>(); eyes = RegisterInteraction <Eyesight>(); move = RegisterInteraction <MoveForward>(); turn = RegisterInteraction <Turning>(); } }
public override void SetupBrain(Agent agent) { _agent = agent; _eyes = _agent.GetComponentInChildren <Eyesight>(); _edgeCheck = _agent.GetComponent <EdgeCheck>(); Attack = false; MoveInput = 0; _movingRight = true; _turning = false; _searching = false; DeathManager.Enemies.Add(agent); }