void Start() { // Assign the correct order correctOrder.Add(1); correctOrder.Add(2); correctOrder.Add(3); correctOrder.Add(4); manager = GameObject.FindObjectOfType(typeof(PlaceHolderManager)) as PlaceHolderManager; confirmButton.enabled = false; correctPieces = 0; }
void Start() { transform.SetParent(GameObject.FindGameObjectWithTag("ParentHolder").transform, false); rect = GetComponent <RectTransform>(); manager = GameObject.FindObjectOfType(typeof(PlaceHolderManager)) as PlaceHolderManager; }
/// <summary> /// Handles the Dock event of the Snap control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="ComponentArt.Web.UI.SnapDockEventArgs"/> instance containing the event data.</param> void Snap_Dock(object sender, SnapDockEventArgs e) { PlaceHolderManager.GetCurrent(this.Page).AddControl(e.SnapObject.Attributes["ControlUID"], e.Dock, e.DockIndex); _rebindSnapFlag = true; }