using System.Collections; using System.Collections.Generic; using UnityEngine; public class addTexture : MonoBehaviour { public static void CT(GameObject O,string ct) { string[] CT=ct.Split(","[0]); Texture2D Tex=DOIT.GetTex(CT[0]); Color Col = DOIT.CSc(CT[2], 255); float Size = DOIT.ConvertStringToNumber(CT[1]); if (CT[3] == "r9" || CT[3] == "r90") Tex = DOIT.Rotate(Tex); float Shine = DOIT.GetShine(CT[4]); O.GetComponent().material = _G.ST; O.GetComponent().material.mainTexture = Tex; O.GetComponent().material.color = Col; O.GetComponent().material.SetFloat("_Glossiness", Shine); DOIT.SetSizeTex(O, Size * 12, Size * 12, 90, 90, 90, 90, 90, 90); O.GetComponent().probeAnchor = GameObject.Find("Reflection Probe").transform; } }