コード例 #1
0
        /** 改造 */
        public void BuildChangeConfig(int buildId)
        {
            StopBuildChangeConfig();

            changeConfigCallHandler = gameObject.AddComponent <BBuildChangeCallHandler>();
            changeConfigCallHandler.Play(changeTime, effect, OnBuildChangeConfig, buildId);
            SetBuildChangeTime(changeTime);
        }
コード例 #2
0
 public void StopBuildAttachModule()
 {
     if (attachModuleCallHandler != null)
     {
         attachModuleCallHandler.StopCall();
         attachModuleCallHandler = null;
     }
 }
コード例 #3
0
 public void StopBuildUplevel()
 {
     if (uplevelCallHandler != null)
     {
         uplevelCallHandler.StopCall();
         uplevelCallHandler = null;
     }
 }
コード例 #4
0
 public void StopBuildChangeConfig()
 {
     if (changeConfigCallHandler != null)
     {
         changeConfigCallHandler.StopCall();
         changeConfigCallHandler = null;
     }
 }
コード例 #5
0
        /** 附加建筑功能 */
        public void BuildAttachModule(AbstractBuildConfig config)
        {
            StopBuildAttachModule();

            attachModuleCallHandler = gameObject.AddComponent <BBuildChangeCallHandler>();
            attachModuleCallHandler.Play(changeTime, effect, OnBuildAttachModule, config);
            SetBuildChangeTime(changeTime);
        }
コード例 #6
0
        /** uplevel */
        public void BuildUplevel()
        {
            StopBuildUplevel();

            //Debug.LogFormat ("<color=#FF8877>BBuildChangeManager BuildUplevel levelData.uplevelTime={0}</color>", levelData.uplevelTime);

            uplevelCallHandler = gameObject.AddComponent <BBuildChangeCallHandler>();
            uplevelCallHandler.Play(levelData.uplevelTime, effect, OnBuildUplevel, null);
            SetBuildChangeTime(levelData.uplevelTime);
        }
コード例 #7
0
 void OnBuildAttachModule(object config)
 {
     unitData.BuildAttachModule((AbstractBuildConfig)config);
     attachModuleCallHandler = null;
 }
コード例 #8
0
 void OnBuildChangeConfig(object buildId)
 {
     unitData.BuildChangeBuildConfig((int)buildId);
     changeConfigCallHandler = null;
 }