void TaskOnClick() { ScoreManager.Reset(); TimeManager.ResetTimer(); RoundManager.ResetRound(); WeaponManager.Ready(); DucksLeftManager.ducksLeft = 20; SquirellHandleClick.isSpawned = false; SceneManager.LoadScene(Constants.NewGameScene); }
void Update() { _theText.text = "" + ducksLeft; if (ducksLeft < 0) { RoundManager.NextRound(); TimeManager.AddMoreTime(); ducksLeft = 20; } }
void CmdCloneShot(NetworkInstanceId cloneID, int damage) { Debug.Log("Clone " + cloneID + " has been shot!"); RoundManager.CloneHit(cloneID, damage); }