// Update is called once per frame void Update() { if (playfab == null) { playfab = GameObject.FindGameObjectWithTag("Playfab").GetComponent <PlayFabSM>(); } }
// 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); } }
// Use this for initialization void Start() { playfab = playfab.GetComponent <PlayFabSM>(); }