Beispiel #1
0
    //ändert den bool isReadyToShoot nach der drawTime
    //TODO Load Weapon das gleiche wie weapon Spannen?
    IEnumerator LoadOrDrawWeapon()
    {
        MissileWeapon weapon = weapons[selectedWeapon] as MissileWeapon;

        //weapon.missileWeaponAnimator.SetTrigger("DrawLoad");
        //weapon.isPreparingWeapon = true;
        weapon.StartLoadOrDraw();
        //Debug.Log("startLoad");
        yield return(new WaitForSeconds(weapon.missileReloadTime));

        //weapon.isPreparingWeapon = false;

        //weapon.weaponReadyToShoot = true;
        //Debug.Log("Waffe geladennnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn ");
        weapon.FinishLoadOrDraw();
        //Debug.Log("finishLoad");
    }