SceneMonoConfigBasic.cs 803 B

1234567891011121314151617181920212223242526272829303132333435
  1. using Fort23.UTool;
  2. using UnityEngine;
  3. namespace GameLogic.Combat.CombatTool.SceneTool
  4. {
  5. public class SceneMonoConfigBasic: MonoBehaviour
  6. {
  7. public GameObject skyObejct;
  8. public Material shengShiMaterial;
  9. protected Transform root;
  10. protected Transform moveRoot;
  11. public void Init(Transform root,Transform moveRoot)
  12. {
  13. this.root = root;
  14. this.moveRoot = moveRoot;
  15. ProInit();
  16. }
  17. protected virtual void ProInit()
  18. {
  19. }
  20. public void UpdateScene()
  21. {
  22. skyObejct.transform.position = new Vector3(root.position.x, 0, root.position.z);
  23. ProUpdate();
  24. }
  25. protected virtual void ProUpdate()
  26. {
  27. }
  28. }
  29. }