Пример #1
0
    public void Throw()
    {
        if (this.Brick == null)
        {
            return;
        }

        if (this.cooldown > this.sinceLastThrow)
        {
            return;
        }

        Brick.start = this.gameObject.transform.position;
        Brick.end   = this.Target.transform.position;

        this.ReadyBrickToThrow();

        Brick.Launch();

        this.Brick          = null;
        this.sinceLastThrow = 0.0f;
    }