public void SetUp(Color OnColorR, Color AwayColorR, bool isSwitchh, bool defSwitchBool, String text, ButtonBalls.UpdateEvent toDo, Vector3 ShowRatio, Vector3 HideRatio) { OnColor = OnColorR; OffColor = AwayColorR; isSwitch = isSwitchh; SwitchBool = defSwitchBool; Description = text; updateEvent = toDo; ShowLocationRatio = ShowRatio; HideLocationRatio = HideRatio; }
public void SetUp(float min, float max, float defValue, float DragRatioo, String text, ButtonBalls.UpdateEvent toDo, Vector3 ShowRatio, Vector3 HideRatio) { Min = min; Max = max; Value = defValue; DragRatio = DragRatioo; Description = text; updateEvent = toDo; ShowLocationRatio = ShowRatio; HideLocationRatio = HideRatio; this.gameObject.AddComponent <AutoLookAt>(); }
public void SetUp(Color OnColorR, Color AwayColorR, KeyCode DefaultKey, String text, ButtonBalls.UpdateEvent toDo, Vector3 ShowRatio, Vector3 HideRatio) { OnColor = OnColorR; AwayColor = AwayColorR; toAssign = DefaultKey; Description = text; updateEvent = toDo; ShowLocationRatio = ShowRatio; ShowLocationRatio.z = 25; HideLocationRatio = HideRatio; HideLocationRatio.z = -1; }