Quantcast
Channel: Answers for "Is Instance Of"
Viewing all articles
Browse latest Browse all 5

Answer by ledlamp

$
0
0
Use `instanceof`: class _paddle { } class _paddle2 { } function Start(){ var player1Paddle = new _paddle2(); if (player1Paddle instanceof _paddle){ print("yes it is"); } else{ print("no it is not"); } } http://wiki.unity3d.com/index.php/UnityScript_Keywords#instanceof

Viewing all articles
Browse latest Browse all 5

Latest Images

Trending Articles





Latest Images