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