void Awake(){ didBeginGameNotificationAction = new UnityAction<System.Object> (RefreshBoard); //defines what action that this object should take when the event is triggered didChangeTurnNotificationAction = new UnityAction<System.Object>(ChangeTurnAction); onBoardSquareClickedNotificationAction = new UnityAction<System.Object>(OnBoardSquareClicked); didStartLocalPlayerNotificationAction = new UnityAction<System.Object> (IdentifyLocalPlayer); board = FindObjectOfType<RBoard> (); //selector = FindObjectOfType<RSelector> (); uiController = FindObjectOfType<UIController> (); enqueueSystem = FindObjectOfType<EnqueueSystem> (); }
void Start() { gameController = FindObjectOfType <RGameController> (); enqueueSystem = FindObjectOfType <EnqueueSystem> (); }