示例#1
0
    void OnGrabRetractEnd(PlayerGrabberBase grabber)
    {
        //make something happen
        Transform t = grabber.DetachGrab();

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

        Object.Destroy(t.gameObject);
    }
示例#3
0
文件: Eye.cs 项目: ddionisio/GitGirl
    void OnGrabRetractEnd(PlayerGrabberBase grabber)
    {
        grabber.player.AddScore(score);

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

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

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

        planetAttach.enabled = true;

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

        Release();
    }
示例#7
0
    void OnGrabRetractEnd(PlayerGrabberBase grabber)
    {
        //make something happen
        grabber.DetachGrab();

        Release();

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

        Release();

        PlayerGrabber pGrabber = grabber as PlayerGrabber;

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

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

        planetAttach.enabled = true;

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

        Release();
    }