… Here are console errors followed with error line place …
Error 1 |
Assets/Circuspheres/Player1/Scripts/Player1_SphereRoll_Check.cs(22,9):error CS0103: The name `b1Script' does not exist in the current context
private Player1_SphereRoll_Check b1Script;
Error 2 |
Assets/Circuspheres/Player1/Scripts/Player1_SphereRoll.js(3,9): BCE0043: Unexpected token: Player1_SphereRoll_Check.
private Player1_SphereRoll_Check b1Script;
Another question, please:
The following line I convert it from C# to Javascript, Has any errors ?
C#:
public bool IsStill { get { return mBody.velocity.sqrMagnitude <= mStillMarginal; } }
JS:
if (mBody.velocity.sqrMagnitude <= mStillMarginal)
{
IsStill = true;
}