Exemple #1
0
        void Bomb()
        {
            if (bombed)
            {
                return;
            }

            bombed = true;
            //ActorProxy.DestroyAfterSummonActor(SummonActorInfos.SinzedPoison, transform.position);
            ActorProxy.CreateActorBy(3013, ActorProxy.ingameUpgradeLevel, ActorProxy.outgameUpgradeLevel,
                                     new Vector3[] { transform.position });
            ActorProxy.Destroy();
        }
        IEnumerator SummonCoroutine()
        {
            ActorProxy.PlayAnimationWithRelay(AnimationHash.Skill, null);

            yield return(new WaitForSeconds(0.4f));

            if (ActorProxy.isPlayingAI)
            {
                var positions = arrSpawnPos.Select(t => t.position).ToArray();
                ActorProxy.CreateActorBy(3012, ActorProxy.ingameUpgradeLevel, ActorProxy.outgameUpgradeLevel,
                                         positions);
            }

            for (int i = 0; i < arrSpawnPos.Length; i++)
            {
                arrPs_Spawn[i].Play();
            }

            yield return(new WaitForSeconds(0.3f));
        }