コード例 #1
0
    void Update()
    {
        if (player.getCurrentPower() == PlayerController.powerUpState.RED)
        {
            bulletDamage *= player.powerMultiplier;
        }
        else
        {
            bulletDamage = defaultDamage;
        }

        previousPosition = BulletCollision.bulletCollisionCast(gameObject, transform, previousPosition, bulletRB, bulletDamage, "player");
    }
コード例 #2
0
 void Update()
 {
     previousPosition = BulletCollision.bulletCollisionCast(gameObject, transform, previousPosition, bulletRB, enemyDamage, "enemy");
 }