养成基本完毕,新UI,修bug,装备初步,
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class FillValueNumber : MonoBehaviour
|
||||
{
|
||||
public Image TargetImage;
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
float amount = TargetImage.fillAmount * 100;
|
||||
gameObject.GetComponent<Text>().text = amount.ToString("F0");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 04a0c3673b152e3428eb3cf3443bc37f
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 170650
|
||||
packageName: Sleek essential UI pack
|
||||
packageVersion: 1.0
|
||||
assetPath: Assets/UI pack/Scripts/FillValueNumber.cs
|
||||
uploadId: 372817
|
||||
Reference in New Issue
Block a user