void Awake() { if(Instance != null) { Debug.LogError("Multiple Instance of soundeffect helper"); } Instance = this; }
void Awake() { if (Instance != null) { Debug.LogError("Multiple instances of SoundEffectsHelper!"); } Instance = this; }
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; }
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>(); }
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>(); }