Пример #1
0
        public void Play(string fxname)
        {
            var fx = FXManager.UF_GetInstance().UF_Create(fxname);

            if (fx != null)
            {
                fx.UF_SetParent(this.transform);
                fx.transform.localScale    = Vector3.one;
                fx.transform.localPosition = Vector3.zero;
                fx.UF_Play();
                this.UF_SetDirty();
            }
        }
Пример #2
0
 protected override void UF_OnRun(float dtime)
 {
     base.UF_OnRun(dtime);
     if (delay > 0)
     {
         m_TickDelay += dtime;
         if (m_TickDelay >= delay && !collider.enabled)
         {
             collider.enabled = true;
             FXManager.UF_GetInstance().UF_Play(explodeEffect, this.position);
         }
     }
     UpdateAttach();
 }
Пример #3
0
 protected override void UF_OnPlay(GameObject tar, Vector3 tarPos, Vector3 vecforward)
 {
     base.UF_OnPlay(tar, tarPos, vecforward);
     //base.UF_OnStart();
     //设置角度指向
     //this.euler = new Vector3(0, MathX.UF_EulerAngle(vecforward).y, 0);
     if (delay > 0)
     {
         collider.enabled = false;
         m_TickDelay      = 0;
     }
     else
     {
         FXManager.UF_GetInstance().UF_Play(explodeEffect, this.position);
     }
 }
Пример #4
0
        void Awake()
        {
            try{
                DontDestroyOnLoad(this);
                s_GameMaim = this;
                s_Root     = this.gameObject;

                FrameHandle.UF_AddHandle(Debugger.UF_GetInstance());
                //System
                FrameHandle.UF_AddHandle(MessageSystem.UF_GetInstance());
                FrameHandle.UF_AddHandle(UpgradeSystem.UF_GetInstance());
                //FrameHandle.UF_AddHandle(NetworkSystem.UF_GetInstance());
                FrameHandle.UF_AddHandle(AssetSystem.UF_GetInstance());
                FrameHandle.UF_AddHandle(CEntitySystem.UF_GetInstance());
                //FrameHandle.UF_AddHandle(LuaFramework.UF_GetInstance());
                //manager
                FrameHandle.UF_AddHandle(PDataManager.UF_GetInstance());
                FrameHandle.UF_AddHandle(ShaderManager.UF_GetInstance());
                FrameHandle.UF_AddHandle(AudioManager.UF_GetInstance());
                FrameHandle.UF_AddHandle(UIManager.UF_GetInstance());
                FrameHandle.UF_AddHandle(FXManager.UF_GetInstance());
                FrameHandle.UF_AddHandle(NavigateManager.UF_GetInstance());
                FrameHandle.UF_AddHandle(MotionManager.UF_GetInstance());
                //FrameHandle.UF_AddHandle(PerformActionManager.UF_GetInstance());
                FrameHandle.UF_AddHandle(RaycastManager.UF_GetInstance());
                FrameHandle.UF_AddHandle(VoiceManager.UF_GetInstance());
                FrameHandle.UF_AddHandle(RenderPreviewManager.UF_GetInstance());
                FrameHandle.UF_AddHandle(RefObjectManager.UF_GetInstance());
                FrameHandle.UF_AddHandle(CheckPointManager.UF_GetInstance());

                FrameHandle.UF_AddHandle(SimulationManager.Instance);

                //setting
                GTime.FrameRate     = 60;
                GTime.FixedTimeRate = 0.016f;
                GTime.RunDeltaTime  = 0.016f;

                Screen.sleepTimeout = SleepTimeout.NeverSleep;
                VendorSDK.UF_Init();

                //VestBinder.Bind();
            }
            catch (System.Exception e) {
                Debugger.UF_Exception(e);
            }
        }
Пример #5
0
 protected void UF_PlayTriggerEffect(Vector3 pos)
 {
     FXManager.UF_GetInstance().UF_Play(this.triggerEffect, pos);
 }