// Use this for initialization void Start () { axeButton = GameObject.FindGameObjectWithTag ("AxeButton").GetComponent<AtkButton> (); swordButton = GameObject.FindGameObjectWithTag ("SwordButton").GetComponent<AtkButton>(); spearButton = GameObject.FindGameObjectWithTag ("SpearButton").GetComponent<AtkButton>(); leftArrowButton = GameObject.FindGameObjectWithTag ("LeftButton").GetComponent<Button> (); rightArrowButton = GameObject.FindGameObjectWithTag ("RightButton").GetComponent<Button> (); //jumpButton = GameObject.FindGameObjectWithTag ("JumpButton").GetComponent<Button> (); escadaButton = GameObject.FindGameObjectWithTag ("EscadaButton").GetComponent<Button> (); defendButton = GameObject.FindGameObjectWithTag ("DefendButton").GetComponent<AtkButton> (); }