public void Awake() { Debug.Log(":) GAMELIFT AWAKE"); // Allow Unity to validate HTTPS SSL certificates; http://stackoverflow.com/questions/4926676 ServicePointManager.ServerCertificateValidationCallback = MyRemoteCertificateValidationCallback; #if SERVER Debug.Log(":) I AM SERVER"); server = new GameLiftServer(this); server.Awake(); #endif #if CLIENT Debug.Log(":) I AM CLIENT"); client = new GameLiftClient(this); #endif /*GameObject gamelogicObj = GameObject.Find("/GameLogicStatic"); * Debug.Assert(gamelogicObj != null); * gamelogic = gamelogicObj.GetComponent<GameLogic>(); * if (gamelogic == null) Debug.Log(":( GAMELOGIC CODE NOT AVAILABLE ON GAMELOGICSTATIC OBJECT"); */ }
void Start() { GameLiftClient gameLiftClient = new GameLiftClient(); }