IEnumerator DoSummon() { for (int i = 0; i < Count; i++) { yield return(new WaitForSeconds(Interval)); Vector3 bornPoint = GTTools.RandomOnCircle(Skill.Caster.Pos, MinRadius, MaxRadius); Vector3 bornEuler = Vector3.zero; GTTransform kt = GTTransform.Create(bornPoint, bornEuler); GTWorld.Instance.AddActor(Id, Skill.Caster.Camp, ActorType, kt, null, false); } }
IEnumerator DoSummon() { for (int i = 0; i < Count; i++) { yield return(new WaitForSeconds(Interval)); Vector3 bornPoint = GTTools.RandomOnCircle(Skill.Caster.Pos, MinRadius, MaxRadius); Vector3 bornEuler = Vector3.zero; KTransform kt = KTransform.Create(bornPoint, bornEuler); CharacterManager.Instance.AddActorNoneSync(Id, Skill.Caster.Camp, ActorType, kt); } }