Esempio n. 1
0
    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 );
    }
Esempio n. 2
0
 private static void CacheType( Type type )
 {
     methodLookup[ type ] = new GameBehaviourMethods( type );
 }