Example #1
0
        public MilkyManager()
        {
            KeyboardListener = KeyboardListener.GetOrNewInstance();

            ConsoleLoops    = ConsoleLoops.GetOrNewInstance();
            LoopsManager    = LoopsManager.GetOrNewInstance();
            StatisticsLoops = StatisticsLoops.GetOrNewInstance();

            OutputSettings = OutputSettings.GetOrNewInstance();

            ProgramInformations = ProgramInformations.GetOrNewInstance();
            ProgramManager      = ProgramManager.GetOrNewInstance();

            RunInformations = RunInformations.GetOrNewInstance();
            RunLists        = RunLists.GetOrNewInstance();
            RunManager      = RunManager.GetOrNewInstance();

            ConsoleSettings = ConsoleSettings.GetOrNewInstance();
            RunSettings     = RunSettings.GetOrNewInstance();

            CustomStatistics = CustomStatistics.GetOrNewInstance();
            RunStatistics    = RunStatistics.GetOrNewInstance();

            ConsoleUtils  = ConsoleUtils.GetOrNewInstance();
            DateTimeUtils = DateTimeUtils.GetOrNewInstance();
            FileUtils     = FileUtils.GetOrNewInstance();
            FormatUtils   = FormatUtils.GetOrNewInstance();
            HashUtils     = HashUtils.GetOrNewInstance();
            ListUtils     = ListUtils.GetOrNewInstance();
            RequestUtils  = RequestUtils.GetOrNewInstance();
            StringUtils   = StringUtils.GetOrNewInstance();
            UserUtils     = UserUtils.GetOrNewInstance();
        }
Example #2
0
        public void StartRun()
        {
            _consoleUtils     = ConsoleUtils.GetOrNewInstance();
            _runInformations  = RunInformations.GetOrNewInstance();
            _loopsManager     = LoopsManager.GetOrNewInstance();
            _keyboardListener = KeyboardListener.GetOrNewInstance();

            _runInformations.SetRunStartDate();
            _runInformations.runStatus = RunInformations.RunStatus.Running;

            _loopsManager.StartAllLoops();
            _keyboardListener.StartListening();

            _consoleUtils.WriteLine($"Powered by Milky Library 1.2{Environment.NewLine}");
        }
Example #3
0
    void Start()
    {
        _animations = GetComponentsInChildren<ReceiverTween>();
        _cameraAnimation = Camera.main.GetComponent<ReceiverVignetting>();
        _loopsManager = FindObjectOfType<LoopsManager>();
        enabled = false;

        _childrenScenes = GetComponentsInChildren<AnimationManager>();
        if (_childrenScenes.Length != 1)
        {
          _collider.gameObject.layer = LayerMask.NameToLayer("Default");
          for (int i = 1; i < _childrenScenes.Length; i++)
          {
        _childrenScenes[i].Complete += OnChildComplete;
          }
        }
    }
Example #4
0
 public static LoopsManager GetOrNewInstance()
 {
     return(_classInstance ?? (_classInstance = new LoopsManager()));
 }