Exemplo n.º 1
0
    // Use this for initialization
    protected virtual void Awake()
    {
        // TODO 1: Res registramos como input especifico para el juego
        InputMgr input = GameMgr.GetInstance().GetServer <InputMgr>();

        if (!input.IsSetAnyInput())
        {
            input.SetInput(this);
        }
        else
        {
            Debug.LogError("No se puede tener dos instancias de Input en el inputMgr");
        }
    }