public void Init() { if (hasInitialized) { return; } hasInitialized = true; this.View = new WeenusUI(this); Button b = this.GetComponent <Button>(); b.onClick.AddListener(CloseModal); }
// Use this for initialization void Start() { View = new WeenusUI(this); }