Пример #1
0
    void Update()
    {
        miniPos = transform.position;
        switch (minimapstate)
        {
        case MINIMAPSTATE.NONE:

            break;

        case MINIMAPSTATE.RIGHT:
            if (player.GetComponent <PlayerController>().playstate == PlayerController.PLAYSTATE.NONE)
            {
                minimapstate = MINIMAPSTATE.NONE;
            }
            transform.Translate(miniSP * Time.deltaTime, 0, 0);
            break;

        case MINIMAPSTATE.LEFT:
            if (player.GetComponent <PlayerController>().playstate == PlayerController.PLAYSTATE.NONE)
            {
                minimapstate = MINIMAPSTATE.NONE;
            }
            transform.Translate(-miniSP * Time.deltaTime, 0, 0);
            break;

        default:
            break;
        }
    }
Пример #2
0
 public void NoneSTA()
 {
     minimapstate = MINIMAPSTATE.NONE;
 }
Пример #3
0
 public void LeftMV()
 {
     minimapstate = MINIMAPSTATE.LEFT;
 }
Пример #4
0
 public void RightMV()
 {
     minimapstate = MINIMAPSTATE.RIGHT;
 }