Example #1
0
        void StartMoveTo(MuPlayer.PlayerData Data)
        {
            float dist = Distance();

            if (dist <= _distance && _action == Action.Closed)
            {
                StartCoroutine(Open());
            }
            else if (dist > _distance && _action == Action.Opened)
            {
                StartCoroutine(Close());
            }
        }
Example #2
0
        void StartMoveTo(MuPlayer.PlayerData Data)
        {
            float dist = Distance();

            if (dist < _distance)
            {
                need = Quaternion.Euler(closedRotate.x, _rotateY, closedRotate.z);
            }
            else
            {
                need = closedRotate;
            }
        }
Example #3
0
 void StartMoveTo(MuPlayer.PlayerData Data)
 {
     Check();
 }