// Use this for initialization void Start() { _content = GameObject.Find("LayersContent"); _layerDict = new Dictionary <int, GameObject> (); _selectedLayers = new List <int> (); _polyWorldController = GameObject.Find("PolyWorldSpace").GetComponent <PolyWorldController> (); }
// Use this for initialization void Start() { _content = GameObject.Find("MaterialsContent"); _materialsDict = new Dictionary <int, GameObject> (); _selectedMaterials = new List <int> (); _materialColors = new Dictionary <int, Color> (); _colorPicker = GameObject.Find("ColorPicker").GetComponent <ColorPicker> (); _polyWorldController = GameObject.Find("PolyWorldSpace").GetComponent <PolyWorldController> (); _textureColorPalette = new Texture2D(palette_unit * palette_width, palette_unit * palette_width); for (int y = 0; y < _textureColorPalette.height; y++) { for (int x = 0; x < _textureColorPalette.width; x++) { _textureColorPalette.SetPixel(x, y, Color.magenta); } } _textureColorPalette.Apply(); Invoke("OnNewMaterial", 0.5f); }
void Start() { _textEmit = GameObject.Find("TextEmit").GetComponent <Text> (); _textEmit.text = emission_per_second.ToString(); _polyWorldController = GameObject.Find("PolyWorldSpace").GetComponent <PolyWorldController> (); _brushController = GameObject.Find("Brush").GetComponent <BrushController> (); }
// Use this for initialization void Start() { _content = GameObject.Find("LayersContent"); _layerDict = new Dictionary <int, GameObject> (); _selectedLayers = new List <int> (); _polyWorldController = GameObject.Find("PolyWorldSpace").GetComponent <PolyWorldController> (); name_input.SetActive(false); _cameraController = GameObject.Find("CameraBase").GetComponent <CameraController> (); }
// Use this for initialization void Start () { _content = GameObject.Find ("LayersContent"); _layerDict = new Dictionary<int, GameObject> (); _selectedLayers = new List<int> (); _polyWorldController = GameObject.Find ("PolyWorldSpace").GetComponent<PolyWorldController> (); }
void Start() { _polyWorldController = GameObject.Find("PolyWorldSpace").GetComponent <PolyWorldController> (); }