Esempio n. 1
0
 /// <summary>
 /// 组建被添加到mono的时候
 /// </summary>
 /// <param name="mono"></param>
 public override void OnBeAdded(IMono mono)
 {
     base.OnBeAdded(mono);
     MainCamera          = Camera.main;
     MainCameraTrans     = MainCamera.transform;
     HighlighterRenderer = Mono.GetComponentInChildren <HighlighterRenderer>();
 }
Esempio n. 2
0
 protected override void OnBattleLoadedScene()
 {
     base.OnBattleLoadedScene();
     TerrainGridSystem            = TerrainGridSystem.instance;
     TerrainGridSystem.cameraMain = Mono.GetComponentInChildren <Camera>();
     OnSetTerrainGridSystem();
     TerrainGridSystem.GenerateMap();
     CloseMap();
 }
Esempio n. 3
0
 public override void OnBeAdded(IMono mono)
 {
     base.OnBeAdded(mono);
     Animator = Mono.GetComponentInChildren <Animator>();
     if (Animator == null)
     {
         CLog.Error("错误 该对象没有Animator" + Mono.name);
     }
     SourceAnimator = Animator.runtimeAnimatorController;
 }
Esempio n. 4
0
 public override void OnEnable()
 {
     base.OnEnable();
     VolumetricFog = Mono.GetComponentInChildren <VolumetricFog>();
     EnableFog(false);
 }