예제 #1
0
        internal LazerPewPew CreateLazer(LazerPewPewSettings settings)
        {
            LazerPewPew result = _container.GetInstance <LazerPewPew>();

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