dronkowitz

BallonDisplay.cs

Dec 27th, 2021 (edited)
1,071
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.80 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. public class BallonDisplay : MonoBehaviour
  6. {
  7.     public List<GameObject> myBallonItems;
  8.     public GameObject myBallonDisplayPopUp;
  9.     public bool myBallonVisible = false;
  10.     public float myBallonDistance = 0.0f;
  11.     public int myBallonNumber = 0;
  12.     // Start is called before the first frame update
  13.     void Start()
  14.     {
  15.        
  16.     }
  17.  
  18.     // Update is called once per frame
  19.     void Update()
  20.     {
  21.        
  22.     }
  23.  
  24.     private void OnTriggerEnter(Collider other)
  25.     {
  26.         FindObjectOfType<PickUpObject>();
  27.         {
  28.             myBallonItems.Clear();
  29.             if (myBallonDisplayPopUp != null)
  30.             {
  31.                 myBallonNumber = 0;
  32.             }
  33.         }
  34.        
  35.     }
  36.    
  37. }
  38.  
Add Comment
Please, Sign In to add comment