// Start is called before the first frame update void Start() { player = GameObject.FindGameObjectWithTag("Player").GetComponent <Transform>(); hp = 10; Wood_Amount = GameObject.FindGameObjectWithTag("Woodamount").GetComponent <Text>(); _text = GameObject.FindGameObjectWithTag("ProgressBar"); _tf = GameObject.FindGameObjectWithTag("InfoBar").GetComponent <TextFlash>(); }
void Start() { _timer = 0.2f; x = GetComponent <BoxCollider2D>().size.x; y = GetComponent <BoxCollider2D>().size.y; Debug.Log("Script's working"); follower = GameObject.FindGameObjectWithTag("ObjectToFollow").GetComponent <Object_Follow_Mouse>(); _text = GameObject.FindGameObjectWithTag("InfoBar"); _tf = GameObject.FindGameObjectWithTag("InfoBar").GetComponent <TextFlash>(); follower._canPlace = false; }
void Awake() { m_textFlash = GetComponent <TextFlash>(); }
void Awake() { m_textFlash = GetComponent <TextFlash>(); m_currentGoal = GameData.currentGoal; }