示例#1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     MyWebService.SoapSerialization sz = new SoapSerialization();
     Diving div = new Diving();
     div = sz.Display(20, 30);
     Page.Response.Write(div.x + " " + div.y);
 }
示例#2
0
    public Diving Display([XmlAttribute(AttributeName = "x")] int x, [XmlAttribute(AttributeName = "y")] int y)
    {
        Diving div = new Diving();

        div.x = x;
        div.y = y;
        return(div);
    }
示例#3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        MyWebService.SoapSerialization sz = new SoapSerialization();
        Diving div = new Diving();

        div = sz.Display(20, 30);
        Page.Response.Write(div.x + " " + div.y);
    }
示例#4
0
文件: Class1.cs 项目: Tilps/Stash
 static void Main(string[] args)
 {
     Diving a = new Diving();
     Console.Out.WriteLine("{0}",
         a.needed("3.2","50.32","5.5 5.5 10.0 ?.? 4.5")
         );
     Console.In.ReadLine();
 }
 public void Execute(Player player)
 {
     // To Transition out you can raycast - Make the cast distance really small (.55 past center position so .05f from ground
     if (Physics.Raycast(player.transform.position, Vector3.down, 1f))
     {
         Debug.Log("Hit Ground");
         Standing stand = new Standing();
         stand.Enter(player);
     }
     if (Input.GetKeyDown(KeyCode.S))
     {
         Diving dive = new Diving();
         dive.Enter(player);
     }
 }
示例#6
0
 // Start is called before the first frame update
 private void Awake()
 {
     instance = this;
 }