コード例 #1
0
 private void StageLight_ColorChanged(StageLight source, StageLight.Color color)
 {
     if (color.alpha == 0)
     {
         lightCone.gameObject.SetActive(false);
     }
     else
     {
         lightCone.gameObject.SetActive(true);
         lightCone.color = new Color32(color.red, color.green, color.blue, color.alpha);
     }
 }
コード例 #2
0
 protected override CircuitNode CreateNode(CircuitManager manager)
 {
     return(stageLight = new StageLight(manager));
 }