Esempio n. 1
0
 public void SetPlayerCount(int playerCount)
 {
     if (perceptualHub != null)
     {
         perceptualHub.SetPlayerCount(playerCount);
     }
     //if no hub instantiated yet, we'll set the player count in DoSetup()
 }
Esempio n. 2
0
 //we have this setup pattern because we can't construct a perceptual hub in the singleton ctor in MotionManager which usually constructs this class.
 public void DoSetup()
 {
     perceptualHub = new PerceptualHub (frameWidth, frameHeight, owner.GetFeedbackTexture());
     perceptualHub.SetPlayerCount(owner.GetPlayerCount());
     isSetup = true;
     frameBuff1 = new byte[frameWidth*frameHeight];
     frameBuff2 = new byte[frameWidth*frameHeight];
     lastFrame = frameBuff1;
     thisFrame = frameBuff2;
 }
Esempio n. 3
0
 //we have this setup pattern because we can't construct a perceptual hub in the singleton ctor in MotionManager which usually constructs this class.
 public void DoSetup()
 {
     perceptualHub = new PerceptualHub(frameWidth, frameHeight, owner.GetFeedbackTexture());
     perceptualHub.SetPlayerCount(owner.GetPlayerCount());
     isSetup    = true;
     frameBuff1 = new byte[frameWidth * frameHeight];
     frameBuff2 = new byte[frameWidth * frameHeight];
     lastFrame  = frameBuff1;
     thisFrame  = frameBuff2;
 }