Esempio n. 1
0
    public void Init()
    {
        if (!mainWeapon)
        {
            Debug.LogError("Not Serialized Main Weapon");
            return;
        }

        android = GetComponent <AliveAndroid>();
        mainWeapon.Init(android);

        nowAmmo = mainWeapon.Ammo;

        SubWeaponType subWeaponType = instanceManager.AndroidManager.GetSubWeaponType();

        if (game.account != null)
        {
            subWeaponType = game.account.GetSelectedSubWeapon();
        }

        if (subWeaponType == SubWeaponType.SubWeaponType_None)
        {
            return;
        }

        instanceManager.AndroidManager.CreateSubWeapon(subWeaponType).Init();
    }
Esempio n. 2
0
 public AndroidSubWeapon CreateSubWeapon(SubWeaponType type)
 {
     return(null);
 }