using CG.Framework; using CG.UTility; using DG.Tweening; using KinematicCharacterController; using KinematicCharacterController.Examples; using System; using System.Collections; using System.Collections.Generic; using System.IO; using UnityEngine; using UnityEngine.UI; /******************************************************************************* *Create By CG *Function *******************************************************************************/ namespace ZXK.LouDiXvMuNiu { public class OperationStepPanel : UIBase { protected Transform _stepContent = null; protected GameObject _stepBigItemPrefab = null; protected GameObject _stepSmallItemPrefab = null; private List _stepBigs = new List(); private List _stepChildrens = new List(); protected const float _smallItemSizeY = 25.0f;//每个子项大小 protected const float _smallItemIntervalY = 5.0f;//每个子项之间间隔 protected const float _smallParentInitPosY = -40.0f;//子项父物体初始位置 private const float _openCloseAnmSpeed = 0.01f;//开合动画播放速度控制 private GameObject _introduceGeo = null; private GameObject imgIntroduceGeo = null; private Text _trainExplainTxt = null; private Button _nextBtn = null; private Toggle _defaultCameraTRTog = null; private Toggle _nearCameraTRTog = null; #region 存储摄像机位置 private KinematicCharacterMotor kinematic = null; private ExampleCharacterCamera characterCamera = null; private Button _creatCameraTR = null; #endregion protected override void Awake() { base.Awake(); _stepContent = GetWedage("StepContent_N").transform; _stepBigItemPrefab = GetWedage("StepBigItemPrefab_N"); _stepSmallItemPrefab = GetWedage("StepSmallItemPrefab_N"); _introduceGeo = GetWedage("introduce_N"); imgIntroduceGeo = GetWedage("imgIntroduce_N"); _trainExplainTxt = GetWedage("TrainExplain_N").GetComponent(); _nextBtn = GetWedage("NextBtn_N").GetComponent