言語: 日本語
  • C#
  • JS
  • Boo

スクリプト言語

お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。

Object.operator !=

public static function operator !=(x: Object, y: Object): bool;

Description

二つのオブジェクトが異なるオブジェクトを参照しているか比較します

	var target : Transform;
	function Update () {
		// the target object does not refer to the same object as our transform
		if (target != transform) {
			print("Another object");			
		}
	}