Beispiel #1
0
        private void checkIfCollected(RespawnResponse respawnResponse)
        {
            switch (respawnResponse.State)
            {
            case RespawnState.NOT_AVAILABLE:
                pickup(sendPickupEvent: false);
                break;

            case RespawnState.READY_FOR_PICKUP:
                break;

            case RespawnState.WAITING_TO_RESPAWN:
                pickup(sendPickupEvent: false);
                break;
            }
        }
Beispiel #2
0
        private void checkIfCollected(RespawnResponse respawnResponse)
        {
            switch (respawnResponse.State)
            {
            case RespawnState.NOT_AVAILABLE:
                SetState(ExplorationState.NOT_AVAILABLE);
                break;

            case RespawnState.READY_FOR_PICKUP:
                SetState(ExplorationState.READY_FOR_PICKUP);
                break;

            case RespawnState.WAITING_TO_RESPAWN:
                registerToRespawn(respawnResponse.Time);
                SetState(ExplorationState.WAITING_TO_RESPAWN);
                break;
            }
        }
        private void checkIfCollected(RespawnResponse respawnResponse)
        {
            switch (respawnResponse.State)
            {
            case RespawnState.NOT_AVAILABLE:
                setNotAvailable();
                break;

            case RespawnState.READY_FOR_PICKUP:
                setAvailable();
                break;

            case RespawnState.WAITING_TO_RESPAWN:
                registerToRespawn(respawnResponse.Time);
                setNotAvailable();
                break;
            }
        }
Beispiel #4
0
 public override void StartCollectible(RespawnResponse respawnResponse)
 {
     isInitialized = true;
     checkIfCollected(respawnResponse);
 }
Beispiel #5
0
 public virtual void StartCollectible(RespawnResponse respawnResponse)
 {
     Log.LogError(this, $"You shouldn't see this message. Method 'startCollectible' must be overidden in the extended class");
 }
        private void setCollectibleState(Collectible scriptObj)
        {
            RespawnResponse respawnState = getRespawnState(scriptObj);

            scriptObj.StartCollectible(respawnState);
        }