Пример #1
0
 // Start is called before the first frame update
 void Start()
 {
     diamods         = FindObjectOfType <PlayerCoinsPrefs>();
     playernextlevel = FindObjectOfType <PlayerCurrentNextPref>();
     ScoreControl    = FindObjectOfType <PlayerLevelControl>();
     leveLCompletion = FindObjectOfType <LeveLCompletion>();
     damageamount    = FindObjectOfType <AmountOfDamage>();
     SetHealthdamage();
 }
Пример #2
0
    private void Start()

    {
        bigEnemyCoins   = FindObjectOfType <PlayerCoinsPrefs>();
        ScoreControl    = FindObjectOfType <PlayerLevelControl>();
        leveLCompletion = FindObjectOfType <LeveLCompletion>();
        damageamount    = FindObjectOfType <AmountOfDamage>();
        m_playerpref    = FindObjectOfType <PlayerCurrentNextPref>();
    }