Esempio n. 1
0
 public override void _Ready()
 {
     instance     = this;
     cameraBase   = GetNode <Spatial>(CameraBasePath);
     cameraRot    = cameraBase.GetNode <Spatial>("CameraRot");
     camera       = cameraRot.GetNode <Spatial>("Camera");
     playerCamera = new PlayerCamera();
     animTree     = mesh.FindNode("AnimationTree", true, false) as AnimationTree;
     PlayerEquip.ResetEquipables();
     using (Packet packet = new Packet((int)ClientPackets.playerInstancedSignal))
     {
         packet.Write(Client.instance.getCID());
         packet.Write(Client.instance.getSessionId());
         Client.SendTCPData(packet);
     }
 }