Scripto(Script Tutor)
Ep1 : first Nulls and nonNulls
Ep1 : first Nulls and nonNulls
void is a function that is empty from any variables like:
var GameObject;
var Char;
var Rigidbody;
var Animation;
var AnimatorController;
For Example :
void OnCollisionEnter (Collision : theCollision)
{
if(theCollision,GameObject.tag == "Bullet");
{
Destroy(gameObject);
}
{
Destroy(gameObject);
}
}
No comments:
Post a Comment