Esempio n. 1
0
 void Awake()
 {
     XImage     = GameObject.Find("XImage");
     RightImage = GameObject.Find("RightImage");
     WWW        = GameObject.Find("WWW");
     WWF        = GameObject.Find("WWF");
     WWL        = GameObject.Find("WWL");
     FFF        = GameObject.Find("FFF");
     FFW        = GameObject.Find("FFW");
     FFL        = GameObject.Find("FFL");
     LLL        = GameObject.Find("LLL");
     LLW        = GameObject.Find("LLW");
     LLF        = GameObject.Find("LLF");
     WFL        = GameObject.Find("WFL");
     RightImage.SetActive(false);
     XImage.SetActive(false);
     WWW.SetActive(false);
     WWF.SetActive(false);
     WWL.SetActive(false);
     FFF.SetActive(false);
     FFW.SetActive(false);
     FFL.SetActive(false);
     LLL.SetActive(false);
     LLW.SetActive(false);
     LLF.SetActive(false);
     WFL.SetActive(false);
 }
Esempio n. 2
0
    void OnCast(string spell)
    {
        if (spell == "WWW" && !_WWW)
        {
            _WWW = true;
            WWW.SetActive(true);
        }
        else if (spell == "WWF" && !_WWF)
        {
            _WWF = true;
            WWF.SetActive(true);
        }
        else if (spell == "WWL" && !_WWL)
        {
            _WWL = true;
            WWL.SetActive(true);
        }
        else if (spell == "FFF" && !_FFF)
        {
            _FFF = true;
            FFF.SetActive(true);
        }
        else if (spell == "FFW" && !_FFW)
        {
            _FFW = true;
            FFW.SetActive(true);
        }
        else if (spell == "FFL" && !_FFL)
        {
            _FFL = true;
            FFL.SetActive(true);
        }
        else if (spell == "LLL" && !_LLL)
        {
            _LLL = true;
            LLL.SetActive(true);
        }
        else if (spell == "LLW" && !_LLW)
        {
            _LLW = true;
            LLW.SetActive(true);
        }
        else if (spell == "LLF" && !_LLF)
        {
            _LLF = true;
            LLF.SetActive(true);
        }
        else if (spell == "WFL" && !_WFL)
        {
            if (WFLCount < 1)
            {
                WFLCount++;
            }
            else
            {
                _WFL = true;
                WFL.SetActive(true);
            }
        }
        else
        {
            XImage.SetActive(true);
            Invoke("OnCastWrong", 3);
        }

        StartCoroutine(OnPassCheck());
    }