Beispiel #1
0
 public void NewGame()
 {
     GetComponent <CanvasUpdater>().onCanvasUpdate = true;
     GetComponent <CanvasUpdater>().canvasState    = 0;
     GetComponent <CameraPositions>().CameraPos    = 1;
     GetComponent <SelectButtons>().SetTexts(0);
     rotateWorld.worldturnforce = 0;
     rotateWorld.RotateAngle(18);
 }
Beispiel #2
0
    public void Change(bool isPos)
    {
        if (isPos)
        {
            worldNum++;
        }
        else
        {
            worldNum--;
        }
        if (worldNum > 4)
        {
            worldNum = 0;
        }
        else if (worldNum < 0)
        {
            worldNum = 4;
        }
        switch (worldNum)
        {
        case 0:
            rotateWorld.RotateAngle(18);
            break;

        case 1:
            rotateWorld.RotateAngle(110);
            break;

        case 2:
            rotateWorld.RotateAngle(181);
            break;

        case 3:
            rotateWorld.RotateAngle(252);
            break;

        case 4:
            rotateWorld.RotateAngle(323);
            break;
        }
        SetTexts(worldNum);
    }