public void loadRoundData(int round)
        {
            switch (round)
            {
            case 1:
                color   = Color.green;
                emitPos = new Vector3(-2.5f, 0.2f, -5f);
                emitDir = new Vector3(24.5f, 40.0f, 67f);
                speed   = 4;
                SceneController.getInstance().getGameModel().setting(1, color, emitPos, emitDir.normalized, speed, 1);
                break;

            case 2:
                color   = Color.red;
                emitPos = new Vector3(2.5f, 0.2f, -5f);
                emitDir = new Vector3(-24.5f, 35.0f, 67f);
                speed   = 4;
                SceneController.getInstance().getGameModel().setting(1, color, emitPos, emitDir.normalized, speed, 2);
                break;
            }
        }
Beispiel #2
0
 private CCActionManager()
 {
     scene = SceneController.getInstance();
 }
 void Awake()
 {
     SceneController.getInstance().setSceneControllerBC(this);
 }
Beispiel #4
0
 private PhysicsManager()
 {
     scene = SceneController.getInstance();
 }