Exemple #1
0
    public static Base GetBase(CRYSTAL_COLOR color)
    {
        Base output = null;

        switch (color)
        {
        case CRYSTAL_COLOR.BLUE:
            output = instance.bases[0];
            break;

        case CRYSTAL_COLOR.GREEN:
            output = instance.bases[1];
            break;

        case CRYSTAL_COLOR.RED:
            output = instance.bases[2];
            break;
        }

        return(output);
    }
Exemple #2
0
 // Start is called before the first frame update
 void Start()
 {
     BaseColor = crystal.Color;
 }