Esempio n. 1
0
    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);
    }
Esempio n. 2
0
    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);
    }
Esempio n. 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;
    }