コード例 #1
0
 public void clickTeapot(SmokeColor smokeColor, Color color, Vector3 newPosition)
 {
     teapotClick = new TeapotClick {
         smokeColor = smokeColor,
         color      = color,
         position   = newPosition
     };
 }
コード例 #2
0
 void InitState()
 {
     teapotClick = new TeapotClick {
         smokeColor = SmokeColor.BLUE,
         color      = Color.blue,
         position   = new Vector3(0, 0, 0)
     };
 }
コード例 #3
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);
 }