// Start is called before the first frame update private void Awake() { UIAPI = GetComponent <UI_API>(); changeColor = GetComponent <ChangeColor>(); golemScript = GetComponent <GollemScript>(); PowerUpCount = 0; PlayerScore = 0; }
// GET: api/UI/5 public ChildZone Get(int id) { UI_API api = new UI_API(); try { return(api.FindZone(id)); } catch { return(null); } }
// DELETE: api/UI/5 public void Delete(int id) { UI_API api = new UI_API(); api.DeleteChildZone(id); }
// PUT: api/UI/5 public void Put(int id, [FromBody] ChildZone value) { UI_API api = new UI_API(); api.PutChildZone(id, value); }
// POST: api/UI public void Post([FromBody] ChildZone value) { UI_API api = new UI_API(); api.CreateNewChildZone(value); }