コード例 #1
0
        public void RestartMove()
        {
            GOEEntityMoveTo mt = this.GetComponent <GOEEntityMoveTo>();

            if (mt != null)
            {
                mt.RestartMove();
            }
            GOEEntityMoveToDirect md = this.GetComponent <GOEEntityMoveToDirect>();

            if (md != null)
            {
                md.Restart();
            }
        }
コード例 #2
0
        public void PauseMove()
        {
            GOEEntityMoveTo mt = this.GetComponent <GOEEntityMoveTo>();

            if (mt != null)
            {
                mt.PauseMove();
            }
            GOEEntityMoveToDirect md = this.GetComponent <GOEEntityMoveToDirect>();

            if (md != null)
            {
                md.Pause();
            }
        }