// Use this for initialization void Start () { EventBus = GameObject.Find ("EventBus").GetComponent<EventsScript> (); EventBus.EventTreasureCollected += IncTreasure; EventBus.EventNewMinion += DecTreasure; }
void Awake() { EventBus = GameObject.Find ("EventBus").GetComponent<EventsScript> (); EventBus.EventPlayerDeath += Die; }
void Awake() { value = 10; EventBus = GameObject.Find ("EventBus").GetComponent<EventsScript> (); }
void Start () { STATE = State.CLOSED; EventBus = GameObject.Find ("EventBus").GetComponent<EventsScript> (); }
void Start () { EventBus = GameObject.Find ("EventBus").GetComponent<EventsScript> (); EventBus.EventPlayerHit += DecHealth; UpdateText (); }