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(); }
public AndroidSubWeapon CreateSubWeapon(SubWeaponType type) { return(null); }