PowerDrop.cs 398 B

12345678910111213141516171819202122
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class PowerDrop : MonoBehaviour
  5. {
  6. public float powerAmount = -100.0f;
  7. [SerializeField]
  8. private UnityEngine.UI.Text textField;
  9. // Use this for initialization
  10. void Start () {
  11. textField.text = powerAmount.ToString();
  12. }
  13. // Update is called once per frame
  14. void Update () {
  15. }
  16. }