#pragma strict
public var selected : float = 0.00;
public var precios : float[ ];
public var defenders : GameObject;
public var tiles : GameObject;
private var seedsScript : Dinero; // “Dinero” its the exact name of the Jscript file this declaration FAILED
public var seedsScript : GameObject; // Also tried this same errores as abobe FAILED
function Start ()
{
// All I want its to find inside Gamelogic gameobject, the componen “Dinero” wich is a javascript code
seedsScript = GameObject.Find(“GameLogic”).GetComponent();
}
The errors im getting are
Assets/Scripts/SetDefenders.js(16,73): BCE0043: Unexpected token: ).
Assets/Scripts/SetDefenders.js(16,74): BCE0044: expecting ), found ‘;’.
Assets/Scripts/SetDefenders.js(16,75): UCE0001: ‘;’ expected. Insert a semicolon at the end.