// destination :collection좌표,parent
    public void Initialize(Transform destination, Transform parent, Vector3 localPosition, Vector3 localScale, PLAY_SOUND_MODE playSoundMode, EXPANSION_MODE expansionMode, int amount, CollectingEffectController collectingEffectController)
    {
        _itemDisplayerTransform = destination;

        if (_displayer == DISPLAYER_MODE.GOLD)
        {
            _itemDisplayer = _itemDisplayerTransform.GetComponent <ItemDisplayer>();
        }
        else if (_displayer == DISPLAYER_MODE.TROPHY)
        {
            _itemDisplayer_trophy = _itemDisplayerTransform.GetComponent <ItemDisplayer_Trophy>();
        }
        else if (_displayer == DISPLAYER_MODE.EX)
        {
            _itemDisplayer_Ex = _itemDisplayerTransform.GetComponent <ItemDisplayer_Ex>();
        }
        else if (_displayer == DISPLAYER_MODE.NONE)
        {
            Debug.Log("Mode를 선택하여 주십시오");
        }



        transform.SetParent(parent);
        transform.localPosition = localPosition;
        transform.localScale    = localScale;

        _playSoundMode             = playSoundMode;
        _expansionMode             = expansionMode;
        _collectinEffectController = collectingEffectController;
        Amount = amount;
    }
Example #2
0
 private void Start()
 {
     instance_ItemDisplayerEx = this;
     init();
 }