コード例 #1
0
    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);
    }
コード例 #2
0
 private void Awake()
 {
     GameObjectHelper.AssertOnlyComponentOfType <IGameStateMachine>(this);
 }