protected override void Begin() { base.Begin(); _mapProcessor = Scene.GetEntityProcessor <MapProcessor>(); if (!_initialized) { // Place all one-time initialization code here _initialized = true; } }
protected override void Begin() { base.Begin(); _mapProcessor = Scene.GetEntityProcessor <MapProcessor>(); _scaleProcessor = Scene.GetEntityProcessor <ScaleProcessor>(); if (!_initialized) { // Place all one-time initialization code here _initialized = true; } // Check if we're moving any of the gems var mousePosition = Camera.main.ScreenToWorldPoint(Input.mousePosition); var hit = Physics2D.OverlapPoint(mousePosition); }
protected override void Begin() { base.Begin(); _inputProcessor = Scene.GetEntityProcessor <InputProcessor>(); _mapProcessor = Scene.GetEntityProcessor <MapProcessor>(); }