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); }
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); }
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); } }
// Start is called before the first frame update private void Awake() { instance = this; }