goto的用法

using UnityEngine;
using System.Collections;

public class goto1 : MonoBehaviour {
	public bool can = false;
	// Use this for initialization
	void Start () {
		if(can == true){
			goto Exit0;
		}
		Debug.Log("11111");

	Exit0:
		Debug.Log("sadfsd");
	}
	
	// Update is called once per frame
	void Update () {
	
	}
}

 

posted @ 2014-07-08 14:24  softimagewht  阅读(280)  评论(0编辑  收藏  举报