Esempio n. 1
0
    // Use this for initialization
    void Start()
    {
        if (colorNumber == 0)
            color = DLLColor.Color.NEUTRAL;

        if (colorNumber == 1)
            color = DLLColor.Color.RED;

        if (colorNumber == 2)
            color = DLLColor.Color.GREEN;

        if (colorNumber == 3)
            color = DLLColor.Color.BLUE;
    }
Esempio n. 2
0
    void ChangeColor(DLLColor.Color col)
    {
        color = col;

        gameObject.GetComponentInChildren<SpriteRenderer> ().sprite = lazerSprites[(int)color];
    }