示例#1
0
    void OnTriggerEnter(Collider col)
    {
        dragon.GetBabyEgg();

        PlayerPrefs.SetInt("BabyEgg_2", 1);

        Score.babyEggsCollected += 1;

        Destroy(this.gameObject);
    }