Exemplo n.º 1
0
    void OnTriggerEnter(Collider other)
    {
        if (!Started)
        {
            return;
        }

        if (other.tag == "PlayerCollider")
        {
            if (Vector3.Dot(turbineBoost.transform.forward, transform.forward) > 0)
            {
                turbineBoost.SetBoost(transform.forward * BoostMagnitude, BoostDuration);
            }
        }
    }