/** * Static constructor. */ static EventUtils() { m_mainScript = GameObject.Find("ScriptHub").GetComponent <Main>(); m_agentScript = GameObject.Find("Agent").GetComponent <AgentInput>(); m_sessionScript = GameObject.Find("ScriptHub").GetComponent <SessionBehavior>(); m_ballScript = GameObject.Find("Ball").GetComponent <BallBehavior>(); m_dataScript = GameObject.Find("ScriptHub").GetComponent <DataManger>(); m_ballObservationScript = GameObject.Find("Ball").GetComponent <BallObservation>(); }
/** * Static constructor. */ public static void InitBallUtilities() { m_ballScript = GameObject.Find("Ball").GetComponent <BallBehavior>(); m_ballObservationScript = GameObject.Find("Ball").GetComponent <BallObservation>(); }