// You need to reset (allocate) this Controller's data before you can use it // Awake() calls ResetData() by default public override void ResetData() { // Allocate one int and three floats data = new Holojam.Network.Flake( 0, 0, 3, 1, 0, false ); }
// Add the scale vector to Trackable, which by default only contains position/rotation public override void ResetData() { data = new Holojam.Network.Flake(2, 1); }
public void ResetData(int numberPlayers) { data = new Holojam.Network.Flake(0, 0, numberPlayers, numberPlayers, 0, false); numPlayers = numberPlayers; }
/* * public int bladeOffenseInt { * get { return data.ints[0]; } * set { data.ints[0] = value; } * } */ public override void ResetData() { data = new Holojam.Network.Flake( 0, 0, numPlayers, numPlayers, 0, false ); }
/* * public int bladeOffenseInt { * get { return data.ints[0]; } * set { data.ints[0] = value; } * } */ public override void ResetData() { data = new Holojam.Network.Flake( 1, 1, 0, 0, 0, false ); }
// You need to reset (allocate) this Controller's data before you can use it // Awake() calls ResetData() by default public override void ResetData() { data = new Holojam.Network.Flake( 1, 2, 3, 4, 5, true ); }