- Home /
This post has been wikified, any user with enough reputation can edit it.
Question by
MJG1123 · May 28, 2015 at 06:39 PM ·
scripting problemfunctionfunctionsreferencinginvoke
How to use a function from another script inside of the Invoke () class?
watch this **VIDEO** please, also can I create a new function and have that function side of like this
start()
{
Invoke ("example1",3);
}
example1 ()
{
otherscript.function();
}
Comment
Answer by crohr · May 28, 2015 at 06:51 PM
You can use a System.Action, and assign a method from any script to it.
can you show me how you'd use it, like insert it into this
public class example ()
start ()
{
Invoke (example1,3);
}
public void example1()
{
otherscript.function1();
}
Your answer
![](https://koobas.hobune.stream/wayback/20220613200403im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
BCE0019 when using functions 0 Answers
Function call is not working 0 Answers
How to randomize the correct choice 2 Answers
Duplicating Component with Some Scene References in Serialized Scriptable Object Class Reference 0 Answers
How to alter c# script from a script in a different scene (i.e. display score in different scene) 2 Answers