public static ImageHintModel CreateImageHint(uint id, uint taskID, uint stepID, string name, Vector3 position, Quaternion rotation, Vector3 scale, ImageHintType imageHintType) { var gameObject = new GameObject(); var imageHint = gameObject.AddComponent <ImageHintModel>(); FillHintProperties(imageHint, id, taskID, stepID, name, position, rotation, scale); imageHint.ImageHintType = imageHintType; return(imageHint); }
public override void Deserialize(BinaryReader reader) { base.Deserialize(reader); ImageHintType = (ImageHintType)reader.ReadByte(); }
public Texture GetTexture(ImageHintType type) { return(HintTextures.First(pair => pair.Type == type).Texture); }