void GetComponents() { switch (this.gameObject.name) { case "BtJogar": Mesh mesh = Quad.Create(2.6f, 1.3f); this.gameObject.GetComponent <MeshRenderer>().material = Atlas_Buttons.globalMaterial_Buttons; this.gameObject.GetComponent <MeshFilter>().mesh = mesh; this.gameObject.GetComponent <BoxCollider>().size = new Vector3(4.3f, 2.25f, 1); break; case "BtCreditos": Mesh mesh2 = Quad.Create(2.6f, 1.3f); this.gameObject.GetComponent <MeshRenderer>().material = Atlas_Buttons.globalMaterial_Buttons; this.gameObject.GetComponent <MeshFilter>().mesh = mesh2; this.gameObject.GetComponent <BoxCollider>().size = new Vector3(4.3f, 2.25f, 1); break; case "BtVoltarCreditos": Mesh mesh7 = Quad.Create(2.6f, 1.3f); this.gameObject.GetComponent <MeshRenderer>().material = Atlas_Buttons.globalMaterial_Buttons; this.gameObject.GetComponent <MeshFilter>().mesh = mesh7; this.gameObject.GetComponent <BoxCollider>().size = new Vector3(4.3f, 2.25f, 1); break; case "BtVoltar": Mesh mesh3 = Quad.Create(2.6f, 1.3f); this.gameObject.GetComponent <MeshRenderer>().material = Atlas_Buttons.globalMaterial_Buttons; this.gameObject.GetComponent <MeshFilter>().mesh = mesh3; this.gameObject.GetComponent <BoxCollider>().size = new Vector3(4.3f, 2.25f, 1); break; case "BtVoltarInstrucoes": Mesh mesh4 = Quad.Create(2.3f, 1f); this.gameObject.GetComponent <MeshRenderer>().material = Atlas_Buttons.globalMaterial_Buttons; this.gameObject.GetComponent <MeshFilter>().mesh = mesh4; this.gameObject.GetComponent <BoxCollider>().size = new Vector3(4.3f, 2.25f, 1); break; case "BtInstruções": Mesh mesh5 = Quad.Create(2.6f, 1.3f); this.gameObject.GetComponent <MeshRenderer>().material = Atlas_Buttons.globalMaterial_Buttons; this.gameObject.GetComponent <MeshFilter>().mesh = mesh5; this.gameObject.GetComponent <BoxCollider>().size = new Vector3(4.3f, 2.25f, 1); break; case "BtTentarNovamente": Mesh mesh6 = Quad.Create(2.6f, 1.3f); this.gameObject.GetComponent <MeshRenderer>().material = Atlas_Buttons.globalMaterial_Buttons; this.gameObject.GetComponent <MeshFilter>().mesh = mesh6; this.gameObject.GetComponent <BoxCollider>().size = new Vector3(4.3f, 2.25f, 1); break; } }
public Image() : base(0, 0, 0, 0) { vertices = new float[16]; verticesBuffer = Quad.Create(); }