123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- using System;
- using Fort23.UTool;
- using UnityEngine;
- namespace GameLogic.Combat.CombatTool.SceneTool
- {
- public class SceneMonoConfigBasic: MonoBehaviour,IDisposable
- {
- public GameObject skyObejct;
- public Material shengShiMaterial;
- protected Transform root;
- protected Transform moveRoot;
- public void Init(Transform root,Transform moveRoot)
- {
- this.root = root;
- this.moveRoot = moveRoot;
- ProInit();
- }
- protected virtual void ProInit()
- {
-
- }
- public void UpdateScene()
- {
- skyObejct.transform.position = new Vector3(root.position.x, 0, root.position.z);
- ProUpdate();
- }
- protected virtual void ProUpdate()
- {
-
- }
- public void Dispose()
- {
- ProDispose();
- root = null;
- moveRoot = null;
- }
- protected virtual void ProDispose()
- {
-
- }
- }
- }
|