예제 #1
0
        internal void Stop(AdvParticleStopType stopType)
        {
            IAdvGraphicObjectParticleController controller =
                GetComponentInChildren <IAdvGraphicObjectParticleController>();

            if (controller == null)
            {
                //コントローラー未設定
                switch (stopType)
                {
                case AdvParticleStopType.StopEmitting:
                    this.GetComponentInChildren <ParticleSystem>().Stop(true, ParticleSystemStopBehavior.StopEmitting);
                    break;

                case AdvParticleStopType.Clear:
                default:
                    //即座に消しておわり
                    ParentObject.FadeOut(0);
                    break;
                }
            }
            else
            {
                controller.Stop(stopType);
            }
        }
예제 #2
0
        internal bool EnableSave()
        {
            IAdvGraphicObjectParticleController controller =
                GetComponentInChildren <IAdvGraphicObjectParticleController>();

            if (controller == null)
            {
                return(true);
            }

            return(controller.EnableSave);
        }