public void StartLastWord(int lastWordPlayerNumber) { if (lastWordCoroutine != null) { StopCoroutine(lastWordCoroutine); } this.lastWordPlayerNumber = lastWordPlayerNumber; lastWordActive = true; LastWordTimer = lastWordDuration; int victimPlayerNumber = lastWordPlayerNumber == 0 ? 1 : 0; PlayerStatsManager.Instance.StashWards(victimPlayerNumber); OnLastWordStart?.Invoke(lastWordPlayerNumber); StartForcedMovement(true); }
public void StartLastWord(int lastWordPlayerNumber) { if (lastWordCoroutine != null) { StopCoroutine(lastWordCoroutine); } this.lastWordPlayerNumber = lastWordPlayerNumber; lastWordActive = true; LastWordTimer = lastWordDuration; int victimPlayerNumber = lastWordPlayerNumber == 0 ? 1 : 0; ClearBullets(); PlayerStatsManager.Instance.StashWards(victimPlayerNumber); OnLastWordStart?.Invoke(lastWordPlayerNumber); StartForcedMovement(true); // Setup player character UI image playerCharacterImages[lastWordPlayerNumber].sprite = characterLastWordHeadshots[(int)CharacterSelection.Instance.GetPlayerCharacterType(lastWordPlayerNumber)]; }