Esempio n. 1
0
        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");
        }
Esempio n. 2
0
 private void Start()
 {
     _flames = GetComponentInParent <Flames>();
 }