private void Awake() { _animator = GetComponent <Animator>(); _boxCollider = GetComponent <BoxCollider2D>(); PlayingSound = GetComponent <PlayingSound>(); _flames = GetComponentInChildren <Flames>(); _flames.Extinguished += PutOutStretcher; // Устанавливаем зеленый статус носилок Status = ColorStatus.Statuses.Green; // Получаем уровень носилок StretcherLevel = PlayerPrefs.GetInt("stretcher"); }
private void Start() { _flames = GetComponentInParent <Flames>(); }