public override void InitElement(UnityEngine.Object obj, Action <bool> showMenuAction, Transform parentScale, ControllesMenu.Controllers control) { base.InitElement(obj, showMenuAction, parentScale, control); Texture2D texture = obj as Texture2D; Material mat = new Material(mesh.sharedMaterial); mesh.material = mat; mesh.material.mainTexture = texture; }
public virtual void InitElement(UnityEngine.Object obj, Action <bool> showMenuAction, Transform parentScale, ControllesMenu.Controllers control) { ShowMenuAction = showMenuAction; this.parentScale = parentScale; scale = control.Scale; rotate = control.Rotate; move = control.Move; }
public override void InitElement(UnityEngine.Object obj, Action <bool> showMenuAction, Transform parentScale, ControllesMenu.Controllers control) { base.InitElement(obj, showMenuAction, parentScale, control); }