void Start() { gameController = GameObject.FindObjectOfType <EverythingController>(); boxCollider = GetComponent <BoxCollider2D> (); diameter = (boxCollider.size.y / Default.averageRatio) / 2; Debug.Log(name + ": " + diameter); Debug.Log("TOTAL PLANEST" + gameController.stacks[0].planets.Count); Debug.Log("THE DIFFICULTY:" + buttonHandler.difficulty_selection); }
// Use this for initialization void Start() { isAngry = false; roof = transform.position.y + 0.5f; bottom = transform.position.y - 0.35f; second = Time.realtimeSinceStartup; primaryPos = this.transform.localPosition; gameController = GameObject.FindObjectOfType <EverythingController>(); }
public EverythingControllerTests() { _everythingController = new EverythingController(_mediator, _fhirRequestContextAccessor) { ControllerContext = new ControllerContext { HttpContext = new DefaultHttpContext(), }, }; }
// Select the stack by clicking on it public void OnMouseOver() { if (Input.GetKeyUp(KeyCode.Mouse0)) { if (isChosen) { isChosen = false; EverythingController gameController = FindObjectOfType <EverythingController> (); gameController.CurrentStack = stackNumber; Debug.Log("Choosing: " + gameObject.name); } else { ChoosingStack(); } } }