Esempio n. 1
0
 public void Squeeze()
 {
     /*
      * LevelOfAngry++;
      * if(LevelOfAngry > 5)
      *  System.Console.WriteLine("Krzyczy!!!");
      */
     Scream?.Invoke(this, EventArgs.Empty);
 }
Esempio n. 2
0
        private void AddPlayerScream(BasePlayer player)
        {
            if (screams.ContainsKey(player))
            {
                Debug.LogWarning("Trying to add more than 1 scream to player.");
                return;
            }

            var scream = new Scream();

            screams.Add(player, scream);
            CreateUI(player);
        }
Esempio n. 3
0
 // Start is called before the first frame update
 void Start()
 {
     animator       = GetComponentInChildren <Animator>();
     characterMotor = GetComponent <CharacterMotor>();
     scream         = GetComponent <Scream>();
 }