Advertisement
dronkowitz

CheckPoint.cs

Oct 28th, 2021
686
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.73 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. public class CheckPoint : MonoBehaviour
  6. {
  7.     public bool levelUpCharacter;
  8.     public bool teamSonicLevelUp, TeamDarkLevelUp, TeamRoseLevelUp, TeamChaotixLevelUp;
  9.     public AudioClip levelUp;
  10.     // Start is called before the first frame update
  11.     void Start()
  12.     {
  13.        
  14.     }
  15.  
  16.     // Update is called once per frame
  17.     void Update()
  18.     {
  19.        
  20.     }
  21.     public void CharacterLevelUp()
  22.     {
  23.         FindObjectOfType<LevelUpCore>(levelUp);
  24.  
  25.         GetComponent<LevelUpCore>();
  26.  
  27.         GameInstance.speedCoreLevelUp += 1;
  28.         GameInstance.flyCorelevelUp += 1;
  29.         GameInstance.powerLevelUpCore = 1;
  30.  
  31.  
  32.     }
  33. }
  34.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement