internal PewCircle CreatePewCircle(PewCircleSettings settings, bool isControlable) { PewCircle result = _container.GetInstance <PewCircle>(); result.Initialize(settings, isControlable); return(result); }
public void Initialize(PewCircleSettings settings, bool isControlable) { Id = settings.Id; Name = settings.Name; Physics.Center = settings.SpawnPoint; Physics.DirectionRads = settings.DirectionRads; _isControlable = isControlable; if (_isControlable) { _inputManager.OnMouseDown += MouseDown; } }