internal LazerPewPew CreateLazer(LazerPewPewSettings settings) { LazerPewPew result = _container.GetInstance <LazerPewPew>(); result.Initialize(settings); return(result); }
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); }