예제 #1
0
파일: Box.cs 프로젝트: isyuun/is.VR.Base
    private void Awake()
    {
        circularGauge = GameObject.Find("CircularGauge").GetComponent <Circular_Gauge>();
        isOn          = false;

        GetComponent <Renderer>().material.color = new Color(UnityEngine.Random.value, UnityEngine.Random.value, UnityEngine.Random.value);
    }
예제 #2
0
파일: Box.cs 프로젝트: yarang/dip_vr_03
    public void Init(Vector3 base_pos, BOX_COLOR _color)
    {
        gameManager    = GameObject.Find("GameManager").GetComponent <GameManager> ();
        circular_gauge = GameObject.Find("Circular_Gauge").GetComponent <Circular_Gauge> ();
        move_speed     = 2.0f;
        Box_Color      = _color;
        is_on          = false;

        Set_Pos(base_pos);
    }
예제 #3
0
    public void Init(Vector3 _basePos, BOX_COLOR _color)
    {
        gameManager   = GameObject.Find("GameManager").GetComponent <GameManager>();
        circularGauge = GameObject.Find("CircularGauge").GetComponent <Circular_Gauge>();
        moveSpeed     = 2.0f;
        BoxColor      = _color;
        isOn          = false;

        transform.position = _basePos;
    }