void onPlayerShoot(SocketIOEvent socketIOEvent) { string data = socketIOEvent.data.ToString(); ShootJSON shootData = ShootJSON.CreateFromJSON(data); GameObject p = GameObject.Find(shootData.name); TankShooting s = p.GetComponent <TankShooting> (); s.setCurrentLaunchForce(shootData.launchForce); s.CmdFire(); }