Esempio n. 1
0
    /// <summary>
    /// Picking the resource.
    /// </summary>
    void PickResource()
    {
        CommonData.ResourceType type = _nowTouching._type;
        int num = _nowTouching.Collect(this);

        _bag.AddResource(type, num);
        ((SceneManagerFight)GameManager.Instance._scene).GetItem((int)type, num);
    }
Esempio n. 2
0
 /// <summary>
 /// Picking the resource.
 /// </summary>
 void PickResource()
 {
     _nowTouching.Collect(this, _playerData._collectionSpeed);
 }