protected void initializeActionBar(){ if(playerEnabled){ actionBar = (ActionBar) GameObject.FindObjectOfType (typeof (ActionBar)); actionBar.setPlayer(this); actionBar.initializeBasicAttack(); } }