private void Awake() { if (!singleton) { singleton = this; } // Reload All Textures BrushTool.ReloadTexture(); PencilTool.ReloadTexture(); EraserTool.ReloadTexture(); SprayTool.ReloadTexture(); CrayonTool.ReloadTexture(); ColorPenTool.ReloadTexture(); PatternDrawTool.ReloadTexture(); OutTexture = Draw.GetWhiteTexture(DrawSheetWidth, DrawSheetHeight); DrawSheetImage.texture = OutTexture; PaintTex = new MyTexture(OutTexture); ShapeTextures = LoadTexturesInPath("Shapes"); for (int i = 0; i < ShapeTextures.Length; i++) { ShapeTextures[i] = Draw.LoadImage(ShapeTextures[i]); } PatternTextures = LoadTexturesInPath("Patterns"); for (int i = 0; i < PatternTextures.Length; i++) { //PatternTextures[i].adv PatternTextures[i] = Draw.LoadImage(PatternTextures[i]); } HistoryCurrentIndex = -1; }