Esempio n. 1
0
        /// <summary>
        /// Allows the game component to perform any initialization it needs to before starting
        /// to run.  This is where it can query for any required services and load content.
        /// </summary>
        public override void Initialize()
        {
            _depthStencilState = new DepthStencilState {
                DepthBufferEnable = true, DepthBufferWriteEnable = true
            };

            camera = new Camera(Game, new Vector3(0, 0, 100), new Vector3(0, 0, 0));
            camera.Initialize();

            _diceAnimation = new DiceAnimation(new Vector3(-30, 0, 0), new Vector3(30, 0, 0),
                                               0, MathHelper.TwoPi,
                                               0.1f, 0.1f, true, new TimeSpan(0, 0, 0, 5));

            base.Initialize();
        }
Esempio n. 2
0
	// Use this for initialization
	void Start () {
		diceCon = GetComponent<DiceAnimation>();
	}