예제 #1
0
 void UpgradeFadeLevel(Eyesight u)
 {
     if (hasConstruction)
     {
         Remove();
     }
 }
예제 #2
0
 protected override void Update()
 {
     if (firstRun)
     {
         biting = RegisterInteraction <Biting>();
         eyes   = RegisterInteraction <Eyesight>();
         move   = RegisterInteraction <MoveForward>();
         turn   = RegisterInteraction <Turning>();
     }
 }
예제 #3
0
파일: AIBrain.cs 프로젝트: n1tros/Chocky
 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);
 }