示例#1
0
 // 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);
        }
    }
示例#3
0
 // Use this for initialization
 void Start()
 {
     playfab = playfab.GetComponent <PlayFabSM>();
 }