private void InitBuiltInEvents() { onKnifeHitOnKnife.AddListener(delegate { StartCoroutine(StartGameOver()); }); onKnifeHitOnWood.AddListener(delegate { RequestNewShoot(); GameObject go = Instantiate(woodParticle, Vector3.down * 1.5f, Quaternion.identity); Destroy(go, 1f); scorer.AddScore(1); onScore.Invoke(); }); onFruitSlice.AddListener(delegate { scorer.AddScore(2); onScore.Invoke(); GameObject go = Instantiate(fruitsParticle, Vector3.down * 1.5f, Quaternion.identity); Destroy(go, 1f); scorer.AddFruits(1); }); }