Exemple #1
0
 private void OnEnable()
 {
     player          = FindObjectOfType <NG_Player>();
     playerStats     = FindObjectOfType <NG_StatManager>();
     playerWeapon    = FindObjectOfType <NG_Weapon>();
     scoreManager    = FindObjectOfType <ScoreManager>();
     upgradeProgress = FindObjectOfType <NG_UpgradeProgress>();
     circleMenu      = FindObjectOfType <NG_CircleMenu>();
     UpdateValues();
 }
Exemple #2
0
    private void Start()
    {
        playerStats = FindObjectOfType <NG_StatManager>();
        upgradeMenu = FindObjectOfType <NG_UpgradeMenu>();
        circleMenu  = FindObjectOfType <NG_CircleMenu>();
        score       = FindObjectOfType <ScoreManager>();
        if (score == null)
        {
            Debug.Log("ScoreManager didn't load between scenes.");
        }

        highestShards = score.shardCount;
        highestHealth = playerStats.Health.MaxVal;
        highestEnergy = playerStats.Energy.MaxVal;
        highestLives  = playerStats.MaxLives;
    }
Exemple #3
0
    private void Update()
    {
        //highestShards = score.shardCount;
        //tempShards = highestShards;
        if (score == null)
        {
            Debug.Log("ScoreManager didn't load between scenes.");
            //highestShards = tempShards;
        }

        if (Input.GetKeyDown(KeyCode.Alpha0))
        {
            highestShards += 8;
        }

        upgradeMenu = FindObjectOfType <NG_UpgradeMenu>();
        circleMenu  = FindObjectOfType <NG_CircleMenu>();

        score.shardCount = highestShards;
    }
Exemple #4
0
 // Use this for initialization
 void Start()
 {
     player      = FindObjectOfType <NG_Player>();
     playerInput = FindObjectOfType <NG_PlayerInput>();
     circleMenu  = FindObjectOfType <NG_CircleMenu>();
 }
Exemple #5
0
 // Use this for initialization
 void Start()
 {
     circleMenu = FindObjectOfType <NG_CircleMenu>();
 }