示例#1
0
 public void Start()
 {
     sourceRadius = source.GetComponent <SphereCollider>().radius;
     shellRadius  = shell.GetComponent <SphereCollider>().radius;
     handler      = GameObject.FindGameObjectWithTag("OSCHandler");
     output       = handler.GetComponent <OSCOutput>();
 }
示例#2
0
    // Start is called before the first frame update
    void Start()
    {
        trans   = GetComponent <Transform>().transform;
        handler = GameObject.FindGameObjectWithTag("OSCHandler");
        output  = handler.GetComponent <OSCOutput>();

        toolTip             = GetComponent <ToolTip>();
        toolTip.ToolTipText = "Source " + (id + 1);
    }
示例#3
0
 void Start()
 {
     scaleMaximum          = transform.localScale.x * 7 / 6;
     scaleMinimum          = scaleMaximum * 2 / 7;
     transformScaleHandler = this.GetComponent <TransformScaleHandler>() as TransformScaleHandler;
     transformScaleHandler.ScaleMinimum = scaleMinimum;
     transformScaleHandler.ScaleMaximum = scaleMaximum;
     output              = GameObject.FindGameObjectWithTag("OSCHandler").GetComponent <OSCOutput>();
     toolTip             = this.transform.GetChild(0).gameObject.GetComponent <ToolTip>();
     toolTip.ToolTipText = (id + 1).ToString();
     radShell            = Mathf.Sqrt(transform.position.x * transform.position.x + transform.position.y * transform.position.y + transform.position.z * transform.position.z);
     matDefault          = Resources.Load("yellow") as Material;
     matMin              = Resources.Load("blue") as Material;
     setDefaultMat();
 }
示例#4
0
    // Start is called before the first frame update
    void Start()
    {
        _oscOut = GameObject.FindWithTag("OSCHandler").GetComponent <OSCOutput>();
        _oscIn  = GameObject.FindWithTag("OSCHandler").GetComponent <OSCInput>();


        _meshRenderer         = GetComponent <MeshRenderer>();
        _meshRenderer.enabled = true;

        _materials = _meshRenderer.materials;
        _mat0Color = _materials[0].color; //Not Connected
        _mat1Color = _materials[1].color; //Connected
        _materials[1].SetColor("_Color", Color.clear);

        _count = 0;
        _connectionFailCounter = 0;
    }
示例#5
0
 private void Awake()
 {
     _instance = this;
 }
示例#6
0
 // Start is called before the first frame update
 void Start()
 {
     trans   = GetComponent <Transform>().transform;
     handler = GameObject.FindGameObjectWithTag("OSCHandler");
     output  = handler.GetComponent <OSCOutput>();
 }