Exemple #1
0
    public void Start()
    {
        monk = GameObject.Find("Monk");
        anim = monk.GetComponent <Animator> ();
        rb   = monk.GetComponent <Rigidbody2D> ();
        gs   = GetComponent <GravitySprite> ();

        // Monk is not currently charging aura:
        anim.SetBool("Charging", false);

        // Monk is not currently touching a door:
        //currentDoor = null;
    }
Exemple #2
0
    ///////////////////////////////////////////////////////////////////////////
    // START FUNCTION
    ///////////////////////////////////////////////////////////////////////////

    // Use this for initialization
    void Start()
    {
        GameEventManager.registerListener(this);
        gs = GetComponent <GravitySprite>();
    }