void Awake() { if (s_helper != null) { throw new System.InvalidProgramException("there is more than one HFTGamepadHelper component!"); } s_helper = this; playerSpawner = GetComponent<PlayerSpawner>(); }
void Awake() { if (s_helper != null) { throw new System.InvalidProgramException("there is more than one HFTGamepadHelper component!"); } s_helper = this; playerSpawner = GetComponent <PlayerSpawner>(); }
void Cleanup() { s_helper = null; }