private void Awake() { gameManager = GameManager.GetInstance(); if( gameManager == null ) return; events = GameBehaviour.GetMethods( this.GetType() ); gameManager.OnGameEv += EventHandler; if( events.postAwakeMethod != null ) events.postAwakeMethod.Invoke( this, null ); }
private static void CacheType( Type type ) { methodLookup[ type ] = new GameBehaviourMethods( type ); }