C# to Unityscript problem.

Hi all,

I have this code that is currently driving me nuts.

C#

// Update is called once per frame
	new void Update () 
    {
    // call inherited JigsawPuzzle.Update();
    base.Update();
	}

I have tried to convert it to:

Unityscript.

// Update is called once per frame
	function Update () 
    {
    // call inherited JigsawPuzzle.Update();
    base.Update();
	}

And i get an Unknown identifier: ‘base’. error.

There is no variable ‘base’ in the C# script at all.

Also the line //Call inherited JigsawPuzzle.Update(); Does that mean that i need to access the Update function from my JigsawPuzzle script?

How would i go about doing that? gameObject.GetComponent?

Any help would be appreciated. :slight_smile:

Thanks.

Daniel.

1 Answer

1

Well, “base” is called “super” in Unityscript.

See this page for more information:

I do think it is. I am reporting it, Thanks