void Start() { firstItem = elementPrototype.localPosition; elementPrototype.gameObject.SetActive(false); sizer = GetComponent <SpriteUIElement>(); Refresh(); }
// Start is called before the first frame update void Start() { sizer = GetComponent <SpriteUIElement>(); Refresh(); model.competencesController = this; // A DECLENCHER PAR LA SUITE //sizer.Show(); }
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; }