第一人称<Fenshu >

来源:互联网 发布:极光推送php demo 编辑:程序博客网 时间:2024/05/06 05:55
using UnityEngine;using System.Collections;public class Fenshu : MonoBehaviour {    private int count=0;    // Use this for initialization    void Start () {    }    // Update is called once per frame    void Update () {    }    void OnGUI(){        GUI.color=Color.red;        GUILayout.Label("分数:"+count);        if(count==10){            Application.LoadLevel("end");        }    }    public void setCount(){        this.count+=2;    }}
原创粉丝点击