public virtual void Awake() { BenChristensonApiInitialize benChristensonApiInitialize = GetComponent <BenChristensonApiInitialize>(); if (benChristensonApiInitialize.is_behaviors_created_at_startup()) { echoMessageGet = gameObject.AddComponent <behaviors.EchoMessageGet>(); echoGet = gameObject.AddComponent <behaviors.EchoGet>(); userLoginEmailPost = gameObject.AddComponent <behaviors.UserLoginEmailPost>(); userLogoutPost = gameObject.AddComponent <behaviors.UserLogoutPost>(); userSignupPut = gameObject.AddComponent <behaviors.UserSignupPut>(); userLoginPost = gameObject.AddComponent <behaviors.UserLoginPost>(); userGet = gameObject.AddComponent <behaviors.UserGet>(); userPost = gameObject.AddComponent <behaviors.UserPost>(); } }
public static int m_logLevel = 1; // 0: no logging, 1: log on response error, 2: log on api errors, 3: log on error and success, 4: log on sent error and success public void Awake() { m_instance = this; benChristenson = GetComponent <BenChristenson> (); benChristensonApiInitialize = GetComponent <BenChristensonApiInitialize> (); }