- Home /
if want use 2 functions in script on option
var Model : Transform;
var Part = "C_F_1";
var command = "Permisst";
var cmd = 1;
if (cmd == 1) {
function OnCollisionEnter(collision : Collision)
{
Model.GetComponent(Part).Permisst = 1;
}
}
if (cmd == 0) {
function Update()
{
Model.GetComponent(Part).Permisst = 1;
}
}
Comment
Could you describe what it is you are trying to do again please in words?
Your answer
Follow this Question
Related Questions
Custom Global Functions 1 Answer
Check object for motion 1 Answer
First person shooter shoot Function 3 Answers
How do I call a function containing a while loop, inside the update function? 2 Answers
Unity Crash on Function Run 2 Answers