コード例 #1
0
ファイル: Turret.cs プロジェクト: tdelta/SynergyQuest
    void LaunchProjectile()
    {
        var instance = FireballProjectile.Launch(fireballPrefab, this.launchPoint.position, direction);

        // If this object has a collider, the projectile shall not collide with it
        if (!ReferenceEquals(_collider, null))
        {
            Physics2D.IgnoreCollision(instance.Collider, _collider);
        }
    }