private void OnDestroy() { spawn.MinusNumer(); ps.GetExp(exp); Barnpc._instance.OnKillWolf(); GameObject.Destroy(hudtextGo); }
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 (); }