/// Subscribes to collection modifications. Add & Remove methods are invoked for each modification. public override void MagazineRemoved(CollectionMagazineViewModel item) { base.MagazineRemoved(item); //Destroy(item); //DropMag(item); _MagazineList.Remove(item); }
public ViewBase DropMag(CollectionMagazineViewModel Magazine) { var prefabName = Magazine.MagazineType.ToString() + "Magazine"; var mag = InstantiateView(prefabName, Magazine); mag.transform.parent = null; mag.transform.position = transform.position; mag.InitializeData(Magazine); return(mag); }
public CollectionMagazineViewModel bobo(string identifier, CollectionMagazineType MagType, int Amount, int RoundSize) { CollectionMagazineViewModel Mag = new CollectionMagazineViewModel(); Mag.Identifier = identifier; Mag.MagazineType = MagType; Mag.Amount = Amount; Mag.RoundSize = RoundSize; return(Mag); }
public override void PickupMagazine(FPSPlayerViewModel fPSPlayer, CollectionMagazineViewModel MagzineViewModel) { //fPSPlayer.CollectedMag++; fPSPlayer.Magazine.Add(MagzineViewModel); }
//public FPSPlayerControllerBase pcb; /// Subscribes to collection modifications. Add & Remove methods are invoked for each modification. public override void MagazineAdded(CollectionMagazineViewModel item) { base.MagazineAdded(item); FPSPlayer.CollectedMag++; _MagazineList.Add(item); }
public override void InitializeCollectionMagazine(CollectionMagazineViewModel collectionMagazine) { }
public virtual void AddMag(CollectionMagazineViewModel collectionMagazine) { }
public abstract void InitializeCollectionMagazine(CollectionMagazineViewModel collectionMagazine);
public virtual void PickupMagazine(FPSPlayerViewModel fPSPlayer, CollectionMagazineViewModel arg) { }