Ejemplo n.º 1
0
        private void Start()
        {
            gameInputs = GameInputs.singleton;
            attack     = GetComponent <AttackDrawer>();

            _currentState = InputState.PreBell;

            bell.OnBell += SetPostBell;

            AssignInternalInputs(player);
        }
Ejemplo n.º 2
0
 private void SingletonCheck()
 {
     if (singleton == null)
     {
         singleton = this;
     }
     else
     {
         print("ERROR, more than one GameInputs class detected!");
     }
 }