Exemplo n.º 1
0
    // 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;
    }
Exemplo n.º 2
0
        // GET: api/UI/5
        public ChildZone Get(int id)
        {
            UI_API api = new UI_API();

            try
            {
                return(api.FindZone(id));
            }
            catch
            {
                return(null);
            }
        }
Exemplo n.º 3
0
        // DELETE: api/UI/5
        public void Delete(int id)
        {
            UI_API api = new UI_API();

            api.DeleteChildZone(id);
        }
Exemplo n.º 4
0
        // PUT: api/UI/5
        public void Put(int id, [FromBody] ChildZone value)
        {
            UI_API api = new UI_API();

            api.PutChildZone(id, value);
        }
Exemplo n.º 5
0
        // POST: api/UI
        public void Post([FromBody] ChildZone value)
        {
            UI_API api = new UI_API();

            api.CreateNewChildZone(value);
        }