// 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; }
void ChangeColor(DLLColor.Color col) { color = col; gameObject.GetComponentInChildren<SpriteRenderer> ().sprite = lazerSprites[(int)color]; }