public override void Initialize(PlayerInventoryController targetPlayerInventoryController)
        {
            var instantiated =
                InstantiateAndInitializePrefab(targetPlayerInventoryController.BodyParent);

            //body probs
            Debug.Log("This Class is Player Inventory Body Item Data");
        }
Example #2
0
        public override void Initialize(PlayerInventoryController targetPlayerInventoryController)
        {
            base.Initialize(targetPlayerInventoryController);

            InstantiateAndInitializePrefab(targetPlayerInventoryController.CannonParent);
            targetPlayerInventoryController.ReactiveShootCommand
            .Subscribe(OnReactiveShootCommand)
            .AddTo(_compositeDisposable);

            //Cannon probs
            Debug.Log("This Class is Player Inventory Cannon Item Data");
        }
 public virtual void Initialize(PlayerInventoryController targetPlayerInventoryController)
 {
     _inventoryController = targetPlayerInventoryController;
     _compositeDisposable = new CompositeDisposable();
 }