Ejemplo n.º 1
0
        private void Awake()
        {
            GameObject player = GameObject.FindGameObjectWithTag(Constant.TAG_PLAYER);

            _playerAirItem = player.GetComponent <AirItemController>();
            _itemSlot      = GetComponent <ItemSlot>();
        }
Ejemplo n.º 2
0
        // Use this for initialization
        void Start()
        {
            _rigidBody = GetComponent <Rigidbody2D>();
            _animator  = GetComponent <Animator>();
            _animator.SetFloat("Angle", 0f);

            _pickupOption = GetComponent <PickupOptionController>();
            _inventory    = GetComponent <InventoryController>();
            _equipment    = GetComponent <EquipmentController>();
            _stats        = GetComponent <AttributeController>();
            _airItem      = GetComponent <AirItemController>();

            _lastPosition = transform.position;
        }
Ejemplo n.º 3
0
 public void OnRemoveFromAir(AirItemController playerAirItem)
 {
     Debug.Log("RemoveFromAir " + Name);
     playerAirItem.RemoveItem();
 }
Ejemplo n.º 4
0
 public void OnPutInAir(AirItemController playerAirItem, SlotPosition slotPosition)
 {
     Debug.Log("PutInAir " + Name);
     playerAirItem.AddItem(Copy(), slotPosition);
 }