public void RestartMove() { GOEEntityMoveTo mt = this.GetComponent <GOEEntityMoveTo>(); if (mt != null) { mt.RestartMove(); } GOEEntityMoveToDirect md = this.GetComponent <GOEEntityMoveToDirect>(); if (md != null) { md.Restart(); } }
public void PauseMove() { GOEEntityMoveTo mt = this.GetComponent <GOEEntityMoveTo>(); if (mt != null) { mt.PauseMove(); } GOEEntityMoveToDirect md = this.GetComponent <GOEEntityMoveToDirect>(); if (md != null) { md.Pause(); } }