- 最后登录
- 2019-12-2
- 注册时间
- 2012-8-25
- 阅读权限
- 90
- 积分
- 34660
- 纳金币
- 38268
- 精华
- 111
|
- using UnityEngine;
- using System.Collections;
- using HutongGames.PlayMaker;
- // playmaker控制 //
- public class ControllerPlayMaker : MonoBehaviour {
-
- private FsmInt _quanJuBianLiang1;// intzhi 变量类型 int//
- private FsmInt _quanJuBianLiang2;// intzhi 变量类型 int//
- public int curHP = 0;
-
- public UILabel curText1 ;
- public UILabel curText2 ;
-
- void Start ()
- {
-
- // 调用全局变量 //
- _quanJuBianLiang1 = FsmVariables.GlobalVariables.GetFsmInt ("Money");
- _quanJuBianLiang2 = FsmVariables.GlobalVariables.GetFsmInt ("Player");
-
- }
- void Update ()
- {
- int B = _quanJuBianLiang1.Value;
- int C = _quanJuBianLiang2.Value;
- curText1.text = B.ToString();
- curText2.text = C.ToString();
- }
- }
复制代码 |
|