I’m trying to create multiple scripts with multiple classes and interface inside but i dont know how to like them together?
ex : i create 2 scripts in hierarchy
GameTickSystem script:
interface ITick
{
Tick();
}
GameManager script:
class GameManager implements ITick
{
public Tick()
{
console.log(“tick”);
}
}
Then i got the error, it says “GameManager can not find ITick”
So how to struct my code like OPP style?
Thank you all