Пример #1
0
 // Use this for initialization
 public override void Awake()
 {
     _spriteManager = this.GetComponent <WolfSpriteManager>();
     Name           = monsterName;
     MaxHealth      = health;
     Height         = height;
     base.Awake();
 }
Пример #2
0
 // Use this for initialization
 void Start()
 {
     _wolfAI        = this.GetComponent <WolfFollow>();
     _spriteManager = this.GetComponent <WolfSpriteManager>();
     _animator      = this.GetComponentInChildren <tk2dSpriteAnimator>();
     _animator.AnimationEventTriggered += AnimationEventHandler;
     _cameraShake  = GameObject.FindGameObjectWithTag("Camera").GetComponent <CameraShake>();
     _audioManager = GameObject.FindGameObjectWithTag("Audio Manager").GetComponent <AudioManager>();
     _canMove      = true;
 }