Ejemplo n.º 1
0
    void Awake()
    {
        dieAnim = GetComponent <GoombaDieAnim>();
        patrol  = GetComponent <Patrol>();
        idle    = GetComponent <Idle>();
        body    = GetComponent <ChipmunkBody>();

        patrol.setDir(1f);         // initialize patrol direction
    }
Ejemplo n.º 2
0
    void Awake()
    {
        dieAnim = GetComponent <GoombaDieAnim>();
        patrol  = GetComponent <Patrol>();
        idle    = GetComponent <Idle>();
        body    = GetComponent <ChipmunkBody>();
        shape   = GetComponent <ChipmunkShape>();

        PauseGameManager.Instance.register(this, gameObject);
    }