Example #1
0
 public virtual void Init(IPlanerLike planer)
 {
     m_planer = planer;
     route = new Queue<int>();
     weights = new Queue<float>();
     tags = new Queue<NodeTag>();
 }
Example #2
0
 void OnPlanerEnter(IPlanerLike planer)
 {
     //Debug.Log(PairPortal);
     PlanerCore x = planer as PlanerCore;
     x.OnEnterPortal(PairPortal.GetNode(), PairPortal.Direction);
     x.RemoveUpdateFunc(OnPlanerEnter);
     x.EnteredPortal = true;
 }
    void UpdatePlaner(IPlanerLike planer)
    {
        PlanerCore x = planer as PlanerCore;
        if (x.State != 1)
        {
          Destroy(this);

        }
        else
        {
          x.MoveControls.Rotate(action);
          x.MoveControls.OnUpdate();
          action = 0;
          if (x.MoveControls.isHit)
        Destroy(this);
        }
    }
Example #4
0
 void UpdateFuncBasic(IPlanerLike planer)
 {
     m_basicAI.OnUpdate();
     m_moveControls.OnUpdate();
     m_mineController.OnUpdate();
     m_basicAI.CheckTarget();
     m_hasTarget = false;
 }
Example #5
0
 void OnUpdated(IPlanerLike warming)
 {
     (m_visualiser.GetComponent<WarmingVisualiser>()).Rewind();
     OnMove();
 }
 void OnPlanerEnter(IPlanerLike planer)
 {
     //Debug.Log(PairPortal);
     PlanerCore x = planer as PlanerCore;
     x.RemoveUpdateFunc(OnPlanerEnter);
     x.EnteredPortal = true;
     x.SetNewDirection(direction, true);
     Creator.creator.LoadLevel(m_targetScene, m_targetPortalName);
 }
Example #7
0
 void PlanerNewUpdater(IPlanerLike planer)
 {
 }