private void ReceiveDamage(int power) { HitPoint -= power; if (HitPoint < 0) { HitPoint = 0; } DamageTextEffect.Create(gameObject, power); gauge.Refresh(); StageSceneGlobalVariables.Instance.PlayerParty.Combo += 1; int combo = StageSceneGlobalVariables.Instance.PlayerParty.Combo; if (combo >= 2) { ComboText.Create(gameObject, combo); } if (HitPoint == 0) { gameObject.AddComponent <EnemyDeadEraseEffect>(); StageSceneGlobalVariables.Instance.Score += DeadScore; //スコア加算 } }
private void ReceiveDamage(int power) { StageSceneGlobalVariables.Instance.PlayerParty.ReceiveDamage(power); DamageTextEffect.Create(gameObject, power); }