Esempio n. 1
0
        void Awake()
        {
            networkOrder = -1;

            //Instantiate Game Logic
            gameBounds    = new GameBounds(-3.8f, 3.8f, 2.4f, -2.4f);
            KeyboardInput = new KeyEvent(myCursor, gameBounds);
            BallLogic     = new BallEvent(Ball, gameBounds);
            life          = 3;

            //Position the Objects
            Reset();

            //Load Level
            gameState = GameState.Start;

            stageParser = StageParser.Instance;
        }
 // Use this for initialization
 void Start()
 {
     state     = State.None;
     BallLogic = ball.GetComponent <Mainloop> ().BallLogic;
 }