public void clickTeapot(SmokeColor smokeColor, Color color, Vector3 newPosition) { teapotClick = new TeapotClick { smokeColor = smokeColor, color = color, position = newPosition }; }
void InitState() { teapotClick = new TeapotClick { smokeColor = SmokeColor.BLUE, color = Color.blue, position = new Vector3(0, 0, 0) }; }
void StateChange(TeapotClick potClick) { teapotClick = potClick; // make smoke white on player one's screen, coloured on player two if (isServer) { makeSmoke(Color.white, teapotClick.position); } else { makeSmoke(teapotClick.color, teapotClick.position); } submitSmoke(teapotClick.smokeColor); }