Example #1
0
 // Update is called once per frame
 void Update()
 {
     Text1.GetComponent <Text>().text = "" + PlayerManager.player[0].WatchWallet();
     Text2.GetComponent <Text>().text = "" + PlayerManager.player[1].WatchWallet();
     Text3.GetComponent <Text>().text = "" + PlayerManager.player[2].WatchWallet();
     Text4.GetComponent <Text>().text = "" + PlayerManager.player[3].WatchWallet();
 }
Example #2
0
    // Update is called once per frame
    void Update()
    {
        if (clear1 == false)
        {
            WaitTime = 8;
            if ((Input.GetMouseButtonDown(0)) & (tapp == false))
            {
                TapAction(1);
                if (nottile != true)
                {
                    Text1.enabled = true;
                    Text1.GetComponent <Animator>().SetTrigger("isText1");
                }
            }
            if (endrotation == true)
            {
                yajirusi3.gameObject.SetActive(false);
                Text2.enabled     = true;
                endrotation       = false;
                next.interactable = true;
                Task.text         = "クリア";
            }
        }
        else if ((clear1 == true) & (clear21 == false))
        {
            WaitTime  = 5;
            Task.text = "側面にある黄色いタイルをタップしよう";
            if ((Input.GetMouseButtonDown(0)) & (tapp == false))
            {
                TapAction(2);
            }
            if (endrotation == true)
            {
                yajirusi2.gameObject.SetActive(false);
                next.interactable = true;
                clear21           = true;
                endrotation       = false;
            }
        }
        else if ((clear23 == true) & (clear22 == false))
        {
            WaitTime  = 3;
            Task.text = "端にある黄色いタイルをタップしよう";
            if ((Input.GetMouseButtonDown(0)) & (tapp == false))
            {
                TapAction(3);
            }
            if (endrotation == true)
            {
                yajirusi1.gameObject.SetActive(false);
                endrotation       = false;
                next.interactable = true;
                clear24           = true;
                Task.text         = "クリア";


                //Debug.Log(TileContraller.TutrialClear);
            }
        }
        else if ((clear1 == true) & (clear22 == true) & (clear31 == false))
        {
            WaitTime      = 8;
            Task.text     = "タイルを重ねて\n色を進化させよう";
            Text3.enabled = true;
            Text3.GetComponent <Animator>().SetTrigger("isText3");
            Text4.enabled = true;
            Text4.GetComponent <Animator>().SetTrigger("isText4");
            //Debug.Log(TileContraller.TutrialClear);
            if ((Input.GetMouseButtonDown(0)) & (tapp == false))
            {
                endrotation = false;
                TapAction(4);
            }
            if ((TileContraller.TutrialClear == true) & (endrotation == true))
            {
                endrotation       = false;
                clear31           = true;
                next.interactable = true;
                Task.text         = "クリア";
            }
        }
        else if ((clear32 == true) && (clear51 == false))
        {
            WaitTime       = 1;
            Task.text      = "黄色いタイルをタップしよう";
            Text42.enabled = true;
            if ((Input.GetMouseButtonDown(0)) & (tapp == false))
            {
                TapAction(5);
            }
            if (endrotation == true)
            {
                clear51           = true;
                next.interactable = true;
                Task.text         = "クリア";
            }
        }
    }