示例#1
0
 private void Awake()
 {
     healthModifier = new HealthModifier()
     {
         DeltaValue = -damage
     };
     animatorTrigger = new AnimatorTriggerModifier()
     {
         Name = "Hit"
     };
 }
示例#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
     };
 }
示例#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);
 }
示例#4
0
 private void Awake()
 {
     healthModifier = new HealthModifier();
 }