コード例 #1
0
ファイル: ActSummon.cs プロジェクト: zyb2013/GameProject3
        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);
            }
        }
コード例 #2
0
        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);
            }
        }