Пример #1
0
 // Use this for initialization
 void Awake()
 {
     _projectiles = new List <GameObject>();
     _animator    = GetComponent <LokiAnimationController>();
     _sound       = GetComponentInChildren <Loki_AttackSound>();
     SetupProjectiles();
 }
Пример #2
0
 // Use this for initialization
 void Awake()
 {
     _lokiMovement        = GetComponent <LokiMovement>();
     _lokiAttack          = GetComponent <LokiAttack>();
     _hp                  = GetComponent <Enemy_HP>();
     _playerHP            = FindObjectOfType <Player_HP>();
     _animationController = GetComponent <LokiAnimationController>();
     _cameraFollow        = FindObjectOfType <Player_CameraFollow>();
 }
Пример #3
0
    // Use this for initialization
    void Awake()
    {
        _lokiTransform    = GetComponent <Transform>();
        _animator         = GetComponent <LokiAnimationController>();
        _currentMovePoint = _lokiTransform;

        _firstMovePoint  = _pointGameObject1.GetComponent <Transform>();
        _secondMovePoint = _pointGameObject2.GetComponent <Transform>();
        _thirdMovePoint  = _pointGameObject3.GetComponent <Transform>();
        _fourthMovePoint = _pointGameObject4.GetComponent <Transform>();
        _fifthMovePoint  = _pointGameObject5.GetComponent <Transform>();
        _stunPoint       = _stunPointGameObject.GetComponent <Transform>();


        _source          = GetComponent <AudioSource>();
        _playerTransform = GameObject.Find("HeroSword_0").GetComponent <Transform>();
    }