Example #1
0
    public void ChangeStrategy()
    {
        int index = GuiScript.instance.StrategyDropValue();

        switch (index)
        {
        case 0:
            strategy = new CubeStrategy();
            break;

        case 1:
            strategy = new PyramidStrategy();
            break;

        case 2:
            strategy = new DiamndStrategy();
            break;

        default:
            break;
        }
    }
Example #2
0
 public void SetUpScene(int dimension, int colorsNumber, Color32[] colors, BoxStrategyScript strategy, Material mat)
 {
     boxStrategy = strategy;
     BoxInGame   = boxStrategy.SetUpScene(transform, dimension, colorsNumber, colors, DIST, mat);
 }