Exemplo n.º 1
0
    void Update()
    {
        if (UISelectManager.IsNoneMode)
        {
            return;
        }
        if (ModeManager.IsGameMode)
        {
            return;
        }

        SelectBox.SetActive(false);
        ResetButton.enabled = true;
        UISelectManager.ChangeNoneMode();
    }
Exemplo n.º 2
0
    // Update is called once per frame
    void Update()
    {
        count             += Time.deltaTime;
        rotationAngle     += Mathf.PI * rotationSpeed * Time.deltaTime;
        transform.position = new Vector3(
            centerObject.position.x + Mathf.Sin(rotationAngle) * moveRadius,
            transform.position.y,
            centerObject.position.x + Mathf.Cos(rotationAngle) * moveRadius);

        transform.LookAt(new Vector3(0, transform.position.y - 2, 0));

        if (alpha >= 1)
        {
            ModeManager.ChangeGameMode();
            UISelectManager.ChangeNoneMode();
            Application.LoadLevel("GameMain");
        }

        Reset();
    }
Exemplo n.º 3
0
 void None()
 {
     Capture.ButtonEnable();
     UISelectManager.ChangeNoneMode();
 }
Exemplo n.º 4
0
 public void NonActiveSelectBox()
 {
     SelectBox.SetActive(false);
     UISelectManager.ChangeNoneMode();
     ResetButton.enabled = true;
 }