Exemplo n.º 1
0
 // Update is called once per frame
 void Update()
 {
     if (playfab == null)
     {
         playfab = GameObject.FindGameObjectWithTag("Playfab").GetComponent <PlayFabSM>();
     }
 }
Exemplo n.º 2
0
    // Update is called once per frame
    void Update()
    {
        if (playfab == null)
        {
            playfab = GameObject.FindGameObjectWithTag("Playfab").GetComponent <PlayFabSM>();
        }

        if (timerOn && timer < 11)
        {
            timer = timer + Time.deltaTime;
        }

        if (timer >= 10)
        {
            buttondown.SetActive(false);
        }
    }
Exemplo n.º 3
0
 // Use this for initialization
 void Start()
 {
     playfab = playfab.GetComponent <PlayFabSM>();
 }