InteractiveCloth.isTeared 是否撕裂

var isTeared : bool

Description描述

Did the cloth tear? (Read Only)

布料是否撕裂?(只读)

参见: tearFactor 变量

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	void Update() {
		if (transform.GetComponent().isTeared)
			Debug.Log("Cloth teared!");

	}
}
function Update() {
	if(transform.GetComponent(InteractiveCloth).isTeared)
		Debug.Log("Cloth teared!");
}
Page last updated: 2011-3-27