Answer the question
In order to leave comments, you need to log in
How to get a method from another script in C#?
I created a script which has a Spawn() method; now I need to use this method in another script. I'm quite green in C#, so if you can be more specific
Answer the question
In order to leave comments, you need to log in
First file code:
using System;
namespace Test1
{
public static class Name
{
public static void Spawn(byte Position)
{
//Код допустим тут
}
}
}
using Test1;
using System;
public class Tetsu
{
public void NAmed()
{
Name.Spawn(100);
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question