Quantcast
Channel: Answers by "M-G-Production"
Viewing all articles
Browse latest Browse all 52

Answer by M.G. Production

$
0
0
Hi mazket! Are you trying to acces a **Script Component** named "Button" or an **GameObject**? **If Button is an object:** using UnityEngine; using System.Collections; public class Cooldown : MonoBehaviour { public GameObject used; // Use this for initialization void startCD () { StartCoroutine (SkillCD ()); } // Update is called once per frame IEnumerator SkillCD () { yield return new WaitForSeconds(10f); used = GameObject.FindGameObjectWithTag ("Used"); used.GetComponent

Viewing all articles
Browse latest Browse all 52

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>