Exemple #1
0
    private void OnEnable()
    {
        PlayerVirusHead.Singletone.OnPeopleEat    += UpdatePlayerScore;
        PlayerVirusHead.Singletone.OnKillingVirus += UpdatePlayerKillsCounter;

        PlayerScoreComponent = PlayerVirusHead.Singletone.Score;
    }
Exemple #2
0
 internal virtual void Awake()
 {
     LastTail = gameObject;
     Score    = gameObject.AddComponent <VirusScore>();
 }