Beispiel #1
0
    public override void Attack(GameObject currentTarget)
    {
        if (currentTarget == null)
        {
            return;
        }
        if (shotSpawn == null)
        {
            return;
        }
        //if (weapon == null)
        //return;


        if (shotSpawn != null)
        {
            weapon.Attack(shotSpawn);
        }
        else
        {
            Debug.Log("shotSpawn null");
        }
    }