public override void Exit() { ObjectObj.SetActive(false); BulletObj.SetActive(false); HitObj.SetActive(false); base.Exit(); }
protected override void OnAtk() { base.OnAtk(); //TODO eff关闭后再推出 HitObj.transform.position = BulletObj.transform.position; if (IsHit == false) { Exit(); } IsHit = true; if (ObjectObj != null) { ObjectObj.transform.position = target.GetPoint; ObjectObj.SetActive(true); } }