12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public abstract class ProjectBaseConfig : BaseConfig
- {
- public int Index { get; set; }
- protected BaseList baseList;
- protected List<BaseConfig> configs;
- public ProjectBaseConfig(BaseList baseList, List<BaseConfig> configs) {
- // configType = ConfigType.PROJECT;
- this.baseList = baseList;
- this.configs = configs;
- }
- public void Awake()
- {
- }
- public void Init() {
- BaseListUpdateConfig();
- }
- public void OnClick() {
- BaseListUpdateConfig();
- }
- public void OnDestroy()
- {
- }
- public void OnDown()
- {
- }
- public void OnEnter()
- {
- }
- public void OnExit()
- {
- }
- public void OnUp()
- {
- }
- public void Start()
- {
- }
- public void Update()
- {
- }
- void BaseListUpdateConfig() {
- if (!baseList) {
- Debug.LogError("Please Init baseList");
- return;
- }
- if (null == configs) {
- Debug.LogError("Please Init configs");
- return;
- }
- baseList.UpdateConfigs(configs);
- }
- }
|