Ejemplo n.º 1
0
    /// <summary>
    ///按钮方法,进行读档
    /// </summary>
    private void MakeLoad(int ID)
    {
        bool   loadOp = SystemValues.LoadInformation(ID.ToString());
        string show   = loadOp ? "读取成功" : "读取失败";

        UIController.GetInstance().ShowUI <messageBox> (show);
    }
Ejemplo n.º 2
0
    // Update is called once per frame
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.Z))
        {
            SystemValues.SaveInformation();
        }

        if (Input.GetKeyDown(KeyCode.X))
        {
            SystemValues.LoadInformation("0");
        }
        if (Input.GetKeyDown(KeyCode.V))
        {
            Mission_KillMonster1 A = new Mission_KillMonster1();
            A.MakeStart();
            SystemValues.thePlayer.GetComponent <Player> ().theMissionPackage.AddNewMission(A);
        }

        if (Input.GetKeyDown(KeyCode.B))
        {
            UIController.GetInstance().ShowUI <UIMissionCanvas> ();
        }
    }