public void init(Rect r, string t, DyanimcButtonStyle s, int ts, Texture2D idle, Texture2D pressed) { winnerScale = 0; newItemScale = 0; winnerTargetScale = 0; newItemTargetScale = 0; newItemTexture = assets.newTexture; winnerTexture = assets.winnerTexture; content = new GUIContent(); content.text = text; style = null; idleButtonTexture = idle; pressedButtonTexture = pressed; width = r.width; height = r.height; text = t; textSize = ts; isActive = true; styleType = s; }
public DynamicButton(AssetManager a, Rect r, string t, DyanimcButtonStyle s, int ts, void_function_DyanmicButton f, Texture2D idle, Texture2D pressed) : base(new Vector2(r.x, r.y)) { assets = a; function_button_action = f; init(r, t, s, ts, idle, pressed); }
public DynamicButton(AssetManager a, Rect r, string t, DyanimcButtonStyle s, int ts, Texture2D idle, Texture2D pressed) : base(new Vector2(r.x, r.y)) { assets = a; init(r, t, s, ts, idle, pressed); }