Help!
I want to add 1 point to script A from script B but an error pops up(refer to title).
I don’t know what’s wrong with it.
!!!
movto2tama is the name of the script B.
Script A:
public var pluspoints : movto2tama;
function Update()
{
pluspoints.APoint();
}
Script B:
private var points : int = 0;
function APoint()
{
points = points + 1;
print(points);
}
Thanks!