Пример #1
0
 protected override void Awake()
 {
     base.Awake();
     helpPageGo               = transform.Find("HelpPage").gameObject;
     monsterPageGo            = transform.Find("MonsterPage").gameObject;
     towerPageGo              = transform.Find("TowerPage").gameObject;
     sliderCanCoverScrollView = helpPageGo.transform.Find("Scroll View").GetComponent <SliderCanCoverScrollView>();
     sliderScrollView         = towerPageGo.transform.Find("Scroll View").GetComponent <SliderScrollView>();
     helpPanelTween           = transform.DOLocalMoveX(0, 0.5f);
     helpPanelTween.SetAutoKill(false);
     helpPanelTween.Pause();
 }
Пример #2
0
 protected override void Awake()
 {
     base.Awake();
     helpPageGo    = transform.Find("HelpPage").gameObject;
     monsterPageGo = transform.Find("MonsterPage").gameObject;
     towerPageGo   = transform.Find("TowerPage").gameObject;
     //这里可能存在的问题,就是上面还没找到,这里就取组件,最后是空,如果是这样,把这里不要使用变量,直接再找一次
     //Debug.Log(helpPageGo);
     sliderScrowView          = towerPageGo.transform.Find("Scroll View").GetComponent <SliderScrowView>();
     sliderCanCoverScrollView = helpPageGo.transform.Find("Scroll View").GetComponent <SliderCanCoverScrollView>();
     helpTween = transform.DOLocalMoveX(0, 0.5f);
     helpTween.SetAutoKill(false);
     helpTween.Pause();
 }