Example #1
0
    private void Start()
    {
        m_input.AddMouseButtonDownCallback(EPlayerInputMouseButttonType.Left, FinishCreate);
        m_input.AddMouseButtonDownCallback(EPlayerInputMouseButttonType.Right, CancelCreate);
        m_input.AddKeyDownCallback(KeyCode.R, RotateObject);

        m_gridManager = GameObject.FindGameObjectWithTag("GameController").GetComponent <GridManager>();
    }