Exemplo n.º 1
0
 private void Awake()
 {
     healthModifier = new HealthModifier()
     {
         DeltaValue = -damage
     };
     animatorTrigger = new AnimatorTriggerModifier()
     {
         Name = "Hit"
     };
 }
Exemplo n.º 2
0
 private void Awake()
 {
     healthModifier = new HealthModifier()
     {
         DeltaValue = -damage
     };
     animatorTrigger = new AnimatorTriggerModifier()
     {
         Name = "Hit"
     };
     audioPlayModifier = new AudioPlayModifier()
     {
         Audio = gameObject.GetComponent <AudioSource>()
     };
     creatEffectModifier = new CreatEffectModifier()
     {
         EffectName = HitEffectName
     };
 }
Exemplo n.º 3
0
 private void Awake()
 {
     healthModifier = new HealthModifier()
     {
         DeltaValue = -damage
     };
     targetAnimator = new AnimatorTriggerModifier()
     {
         Name = "Hit"
     };
     animatorTrigger = new AnimatorTriggerModifier()
     {
         Animator = warningObject.GetComponent <Animator>(),
         Name     = "Launch"
     };
     boxCollider        = GetComponent <BoxCollider2D>();
     boxCollider.size   = new Vector2(length, width);
     boxCollider.offset = new Vector2(length / 2, 0);
 }
Exemplo n.º 4
0
 private void Awake()
 {
     healthModifier = new HealthModifier();
 }