private void Awake() { display = GetComponent <ITileFocusDisplay>(); selectionInteractor = GetComponent <ITileSelectionInteractor>(); Root = GetComponent <Tile.Tile>(); // make sure we're the only one who is using this interface on this object. GameObjectHelper.AssertOnlyComponentOfType <IExclusiveFocusInteractor>(this); }
private void Awake() { GameObjectHelper.AssertOnlyComponentOfType <IGameStateMachine>(this); }