Exemplo n.º 1
0
        internal LazerPewPew CreateLazer(LazerPewPewSettings settings)
        {
            LazerPewPew result = _container.GetInstance <LazerPewPew>();

            result.Initialize(settings);
            return(result);
        }
Exemplo n.º 2
0
        public void Initialize(LazerPewPewSettings settings)
        {
            Id        = settings.Id;
            CreatorId = settings.CreatorId;

            Physics.Speed  = 300;
            Physics.Size   = 2;
            Physics.Center = settings.SpawnPoint;

            Physics.SetDirectionRelative(settings.Direction);
        }