How to access Boo's static value from C#

I wanna access Boo’s static value from C#'s script

in the sample, it is “point”

It is Boo’s code

import UnityEngine

class GlobalValueManager (MonoBehaviour): 
    public static point as int = 0

There are my C# bad practice.

GlobalValueManager.point;

N/A

(gameObject.GetComponent("GlobalValueManager")).point;

N/A

GlobalValueManager other;
other = gameObject.GetComponent("GlobalValueManager") as GlobalValueManager;
other.point;

N/A

GlobalValueManager other = gameObject.GetComponent<GlobalValueManager>();
other.point;

N/A

please help me:shock:

sure that the boo script is in a folder thats in the “first pass group” so boo is compiled to .NET assembly before your C# script is compiled?
scripts of different languages in the same compile step can never see each other

as for the 2nd code: Thats double bad code.

  1. The GetComponent with string version should never be used. it will not pick up errors until it crashes at runtime
  2. GetComponent returns Component, not GlobalValueManager and you don’t cast it either

I just move my GlobalValueManager.boo and just call GlobalValueManager.point
When resolved! Thanks