private void DeadAction(EntityBase entity) { if (entity != null) { SkillCreateBase cloud = this.GetCloud(); cloud.transform.position = entity.position; cloud.Init(base.m_Entity, base.m_SkillData.Args); cloud.SetTimeCallback(new Action <SkillCreateBase>(this.CloudTimeOver)); this.mClouds.Add(cloud); } }
private void CloudTimeOver(SkillCreateBase cloud) { cloud.Deinit(); this.mClouds.Remove(cloud); }