示例#1
0
 /// 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);
 }
示例#2
0
    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);
    }
示例#3
0
    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);
    }
示例#4
0
 public override void PickupMagazine(FPSPlayerViewModel fPSPlayer, CollectionMagazineViewModel MagzineViewModel)
 {
     //fPSPlayer.CollectedMag++;
     fPSPlayer.Magazine.Add(MagzineViewModel);
 }
示例#5
0
 //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);
 }
示例#6
0
 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)
 {
 }