public void OnMissionStart()
    {
        // missionMessageUI.text = "Mission started!";

        // Start moving pickup
        pickupMovementPath.DOPlay();
        // Start mission timer
        missionTimer.Start();
        // Show mission panel canvas group
        missionPanelCG.alpha = 1;
        // Disable explosion effect
        explosionEffect.SetActive(false);

        // Enable picku (car object)
        pickupGameObject.SetActive(true);
    }
Beispiel #2
0
        public void Start(string mission)
        {
            Logger.Info($"Loading mission: {mission}");
            string Path = $"{API.GetResourcePath(API.GetCurrentResourceName())}/Missions/{mission}";

            Mission        = Server.Mission.Load(Path);
            _Mission       = Mission as Mission;
            RemaingingTime = Mission.Duration;
            if (_Mission.SelectionData.Teams.Count != 1)
            {
                throw new Exception("This DM gamemode requires 1 team.");
            }

            GameController.StartMission(_Mission);

            // Start game timer
            MissionTimer.Start();

            Logger.Debug($"Loaded: {_Mission.Name}");
        }