示例#1
0
 void Start()
 {
     firstItem = elementPrototype.localPosition;
     elementPrototype.gameObject.SetActive(false);
     sizer = GetComponent <SpriteUIElement>();
     Refresh();
 }
示例#2
0
 // Start is called before the first frame update
 void Start()
 {
     sizer = GetComponent <SpriteUIElement>();
     Refresh();
     model.competencesController = this;
     // A DECLENCHER PAR LA SUITE
     //sizer.Show();
 }
示例#3
0
 void Awake()
 {
     dialogLayout.gameObject.SetActive(false);
     buttons = dialogLayout.buttons;
     dialogLayout.buttonA.onClickEvent += () => OnButton(0);
     dialogLayout.buttonB.onClickEvent += () => OnButton(1);
     dialogLayout.buttonC.onClickEvent += () => OnButton(2);
     spriteUIElement = GetComponent <SpriteUIElement>();
     mainCamera      = Camera.main;
 }