private void Awake() { Speed = speed; deathActions += (x, y) => KillCollider(); deathActions += (x, y) => ChangeHitObjectNormal(); deathActions += (x, y) => isLife = false; deathActions += (_, damageType) => UpChainCount(damageType); deathActions += (x, y) => G20_CameraShake.GetInstance().ShakeOnEvent(G20_CamShakeEventType.ENEMY_DOWN); if (!head) { head = transform; } SetDeathVoice(); }
// Use this for initialization void Start() { player.recvDamageActions += (x, y) => DamageEffect(); cameraShake = Camera.main.GetComponent <G20_CameraShake>(); }
private void Awake() { cameraShake = Camera.main.GetComponent <G20_CameraShake>(); }