void Start() { myViewObject = (new GameObject("MyViewObject")).AddComponent <MyViewObject> (); myViewObject.Init((msg) => { Debug.Log(string.Format("CallFromJS[{0}]", msg)); }); myViewObject.SetMargins(5, 5, 5, 40); myViewObject.SetVisibility(true); }
void Start () { myViewObject = (new GameObject ("MyViewObject")).AddComponent<MyViewObject> (); myViewObject.Init ((msg) => { Debug.Log (string.Format ("CallFromJS[{0}]", msg)); }); myViewObject.SetMargins (5, 5, 5, 40); myViewObject.SetVisibility (true); }
public DetailFramePage() { this.InitializeComponent(); myViewObject = new MyViewObject(); myViewObject.MyText = "haha"; }