コード例 #1
0
    void Start()
    {
        inputHdlr = InputHandler.Instance;                       // TODO: Replace with command pattern

        gridMgrInstance = FindObjectOfType <UnityGridManager>(); // Replace with singleton?

        charTurnInfo = this.gameObject.GetComponent <UnityCharacterTurnInfo>();
    }
コード例 #2
0
    private void Awake()
    {
        inputHdlr = InputHandler.Instance;                       // TODO: Replace with command pattern

        gridMgrInstance = FindObjectOfType <UnityGridManager>(); // Replace with singleton?

        charTurnInfo = this.gameObject.GetComponent <UnityCharacterTurnInfo>();

        MovableNodes = new List <GridMovableNode>();
    }