Example #1
0
 void Awake()
 {
     if(Instance != null)
     {
         Debug.LogError("Multiple Instance of soundeffect helper");
     }
     Instance = this;
 }
Example #2
0
 void Awake()
 {
     if (Instance != null)
     {
         Debug.LogError("Multiple instances of SoundEffectsHelper!");
     }
     Instance = this;
 }
Example #3
0
 void Awake()
 {
     // Register the singleton
     if (Instance != null)
     {
         Debug.LogError("Multiple instances of SoundEffectsHelper!");
     }
     Instance = this;
 }
 private void Awake()
 {
     // регестрируем синглтон
     if (Instance != null)
     {
         Debug.LogError("Несколько экземпляр SoundEffectsHelper");
     }
     Instance = this;
 }
Example #5
0
 void Start()
 {
     GroundSensor.GroundSensorChange += Grounded;
     keybinds = GameObject.FindGameObjectWithTag("KeyBinds").GetComponent <KeybindScript>();
     body     = GetComponent <Rigidbody2D>();
     FindWallSensors();
     touchingRight = false;
     touchingLeft  = false;
     isRunning     = false;
     readyForJump  = true;
     soundPlayer   = GameObject.Find("soundEffects").GetComponent <SoundEffectHelper>();
 }
Example #6
0
 void Start()
 {
     GroundSensor.GroundSensorChange += Grounded;
     keybinds = GameObject.FindGameObjectWithTag("KeyBinds").GetComponent<KeybindScript>();
     body = GetComponent<Rigidbody2D>();
     FindWallSensors();
     touchingRight = false;
     touchingLeft = false;
     isRunning = false;
     readyForJump = true;
     soundPlayer = GameObject.Find("soundEffects").GetComponent<SoundEffectHelper>();
 }