Esempio n. 1
0
    void OnGrabRetractEnd(PlayerGrabberBase grabber)
    {
        //make something happen
        Transform t = grabber.DetachGrab();

        Object.Destroy(t.gameObject);
    }
Esempio n. 2
0
    void OnGrabRetractEnd(PlayerGrabberBase grabber)
    {
        //make something happen
        Transform t = grabber.DetachGrab();

        Object.Destroy(t.gameObject);
    }
Esempio n. 3
0
    void OnGrabRetractEnd(PlayerGrabberBase grabber)
    {
        grabber.player.AddScore(score);

        //make something happen
        grabber.DetachGrab();
        boss.EyeEaten(this);
    }
Esempio n. 4
0
    void OnGrabRetractEnd(PlayerGrabberBase grabber)
    {
        grabber.player.AddScore(score);

        //make something happen
        grabber.DetachGrab();
        boss.EyeEaten(this);
    }
Esempio n. 5
0
    void OnGrabRetractEnd(PlayerGrabberBase grabber)
    {
        //make something happen
        grabber.DetachGrab();

        if (stateCallback != null)
        {
            stateCallback(this, State.Eaten);
        }
    }
Esempio n. 6
0
    protected virtual void OnGrabRetractEnd(PlayerGrabberBase grabber)
    {
        grabber.DetachGrab();

        planetAttach.enabled = true;

        //get eaten, let player know
        grabber.player.AddScore(score);

        Release();
    }
Esempio n. 7
0
    void OnGrabRetractEnd(PlayerGrabberBase grabber)
    {
        //make something happen
        grabber.DetachGrab();

        Release();

        PlayerGrabber pGrabber = grabber as PlayerGrabber;
        if(pGrabber != null) {
            pGrabber.Equip(weapon);
        }
    }
Esempio n. 8
0
    void OnGrabRetractEnd(PlayerGrabberBase grabber)
    {
        //make something happen
        grabber.DetachGrab();

        Release();

        PlayerGrabber pGrabber = grabber as PlayerGrabber;

        if (pGrabber != null)
        {
            pGrabber.Equip(weapon);
        }
    }
Esempio n. 9
0
    void OnGrabRetractEnd(PlayerGrabberBase grabber)
    {
        //make something happen
        grabber.DetachGrab();

        if(stateCallback != null) {
            stateCallback(this, State.Eaten);
        }
    }
Esempio n. 10
0
    protected virtual void OnGrabRetractEnd(PlayerGrabberBase grabber)
    {
        grabber.DetachGrab();

        planetAttach.enabled = true;

        //get eaten, let player know
        grabber.player.AddScore(score);

        Release();
    }