public virtual void Init(IPlanerLike planer) { m_planer = planer; route = new Queue<int>(); weights = new Queue<float>(); tags = new Queue<NodeTag>(); }
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); } }
void UpdateFuncBasic(IPlanerLike planer) { m_basicAI.OnUpdate(); m_moveControls.OnUpdate(); m_mineController.OnUpdate(); m_basicAI.CheckTarget(); m_hasTarget = false; }
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); }
void PlanerNewUpdater(IPlanerLike planer) { }