示例#1
0
    // Use this for initialization
    void Start()
    {
        Screen.orientation = ScreenOrientation.LandscapeLeft;
        Debug.Log("MENU START");
        menufield = this.GetComponent <FieldScript>();
        menufield.Initialize(xleng, zleng);
        menufield.SetTurnSpeed(TurnTm);
        menufield.CreateRandomField();
        menufield.mainMenu = true;
        InGame             = false;
        rBoxS   = Screen.width * BoxS;
        rIndent = Screen.width * Indent;
        rExitS  = Screen.width * ExitS;
        this.transform.position = new Vector3(xleng / 2, 7, 3);
        GUICalc();

        ShowAd();
    }