예제 #1
0
        internal PewCircle CreatePewCircle(PewCircleSettings settings, bool isControlable)
        {
            PewCircle result = _container.GetInstance <PewCircle>();

            result.Initialize(settings, isControlable);
            return(result);
        }
예제 #2
0
        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;
            }
        }