Example #1
0
 // Start is called before the first frame update
 void Start()
 {
     combatManager = GameObject.Find("CombatManager").GetComponent <CombatManagerBehaviour>();
     button        = GetComponent <Button>();
     button.onClick.AddListener(FleeButtonListener);
 }