예제 #1
0
		public override void Added()
		{
			base.Added();

			// Get reference to GameWands interface for handling Leap Tools
			GameWands = ( (Scene_GameClass) Scene ).GameWands;

			Text_Warning = new Otter.Text( "", 32 );
			{
				Text_Warning.X = X;
				Text_Warning.Y = Y;
				Text_Warning.CenterOrigin();
				Text_Warning.OutlineThickness = 2;
			}
			Parent.AddGraphic( Text_Warning );

			// Initialize the cable offset
			Alpha = new ClampedSpeedValueClass();
			{
				Alpha.Value = 0;
				Alpha.Minimum = 0;
				Alpha.Maximum = 1;
				Alpha.Speed = FADE_SPEED;
			}

			// Update the images to have this initial alpha value
			foreach ( Graphic graphic in Parent.Graphics )
			{
				graphic.Alpha = Alpha.Value;
			}
		}
예제 #2
0
		// Pass in reference to the GameWands system & setup values unique to each wizard
		// IN: (gamewands) Reference to the Leap tool game state handler, (wizardtype) Light or dark wizard,
		//     (wizard) The ID of this wizard, (angle) The rotation of this wizard from 0 facing upwards
		// OUT: N/A
		public WizardClass( Session playsession, GameWandsClass gamewands, WizardTypeStruct wizardtype, int wizard, float angle )
			: base()
		{
			LinkedSession = playsession;
			GameWands = gamewands;
			WizardType = wizardtype;
			ID = wizard;
			Angle = angle;
		}