Example #1
0
        private void Start()
        {
            _inRm = GetComponent <InRoom>();

            var go = GameObject.Find("Dray");

            _dray = go.GetComponent <Dray>();
        }
Example #2
0
 private void Awake()
 {
     _aud           = GetComponent <AudioSource>();
     _sRend         = GetComponent <SpriteRenderer>();
     _rigid         = GetComponent <Rigidbody>();
     _anim          = GetComponent <Animator>();
     _inRm          = GetComponent <InRoom>();
     Health         = maxHealth;          // Назначить максимальное здоровье, при начале игры
     lastSafeLoc    = transform.position; // Начальная позиция безопасна
     lastSafeFacing = facing;
 }
Example #3
0
 protected override void Awake()
 {
     base.Awake();
     _inRm = GetComponent <InRoom>();
 }
Example #4
0
 private void Awake()
 {
     _inRm = GetComponent <InRoom>();
 }