// Update is called once per frame void Update() { if (XCI.GetButtonDown(XboxButton.A)) { elementController.SetSelectedElement(Element.Seed); } if (XCI.GetAxis(XboxAxis.RightTrigger) > 0.1f) { if (elementController.IsSelectedElementSeed()) { SpawnPlant(); } } }