Esempio n. 1
0
 private void OnDestroy()
 {
     spawn.MinusNumer();
     ps.GetExp(exp);
     Barnpc._instance.OnKillWolf();
     GameObject.Destroy(hudtextGo);
 }
Esempio n. 2
0
    void DestroySelf()
    {
        transform.parent.GetComponent <WolfSpawn>().MinusNumber();
        Destroy(this.gameObject, 1);
        ps.GetExp(exp);
        EquipAndBag.instance.GetMoney(money);
        TaskEventArgs e = new TaskEventArgs();

        e.id     = name;
        e.amount = 1;
        MesManager.Instance.Check(e);
        //BarNPC._instance.OnKillWolf ();
    }