Beispiel #1
0
    /*********************************************************************************************************
     *                                                                                      PUBLIC FUNCTIONS
     **********************************************************************************************************/

    public void OnCloseToOtherPlayer()
    {
        this.isCloseToOtherPlayer = true;

        // Flash effect
        cameraController.FlashEffect();

        // Reunite effect
        if (!touchedSinceEntry)
        {
            touchedSinceEntry = true;
            //Debug.Log(playerNumber + " reunites");
            cameraController.AddPlayerVisionImpulse(otherPlayerImpact);
            AddToBalance(otherPlayerImpact);
            currentBalanceDirection = BalanceDirection.RECHARGE_FACTOR;
            timeUntilBalanceShift   = BALANCE_SHIFT_TIME;
            shiftedSinceAction      = false;
            reuniting = true;
            soundController.PlayReuniteSound();
        }
    }