|
|
|
@ -204,6 +204,7 @@ public class SnowConnonController : MonoBehaviour
|
|
|
|
|
if (info.gameObjID == basegameInfo.gameObjID) |
|
|
|
|
{ |
|
|
|
|
paotong.transform.localEulerAngles = info.VrotateVec; |
|
|
|
|
transform.localEulerAngles = info.HrotateVec; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -416,12 +417,14 @@ public class SnowConnonController : MonoBehaviour
|
|
|
|
|
|
|
|
|
|
public void Left() |
|
|
|
|
{ |
|
|
|
|
Debug.Log("left"); |
|
|
|
|
transform.Rotate(0, -10, 0); |
|
|
|
|
RotateSync(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void Right() |
|
|
|
|
{ |
|
|
|
|
Debug.Log("right"); |
|
|
|
|
transform.Rotate(0, 10, 0); |
|
|
|
|
RotateSync(); |
|
|
|
|
} |
|
|
|
|
void RotateSync() |
|
|
|
|
{ |
|
|
|
@ -429,6 +432,7 @@ public class SnowConnonController : MonoBehaviour
|
|
|
|
|
arg.SendUserID = CurrentUserInfo.mySelf.Id; |
|
|
|
|
arg.gameObjID = basegameInfo.gameObjID; |
|
|
|
|
arg.VrotateVec = paotong.transform.localEulerAngles; |
|
|
|
|
arg.HrotateVec = transform.localEulerAngles; |
|
|
|
|
NetworkManager.Default.SendAsync("SNOWCANNON_ROTATE_SYNC", arg); |
|
|
|
|
} |
|
|
|
|
public void Resert() |
|
|
|
|