示例#1
0
 protected virtual void ClearFireController()
 {
     if (fireController != null)
     {
         fireController.Clear();
         fireController = null;
     }
 }
示例#2
0
    protected override void Awake()
    {
        itemAnimator      = null;
        fireController    = null;
        waveEmitterIndex  = -1;
        waveEmitterObject = null;
        waveParams        = null;
        waveAnimator      = null;

        /*halmeida - set the animator to null because the Awake of the base class will call Clear(), and
         * the redefinition of Clear() in this class asks if the animator is null.*/
        base.Awake();
        triggerSourceComponent = null;
        triggerComponents      = null;
        triggeringComponents   = null;
        appearanceLevel        = APPEARANCE_LEVEL_FIRST;
        itemCollider           = GetComponent <Collider2D>();
        ExtractAnimators();
        originalScale = gameObject.transform.localScale;
        shrinkSpeed   = SHRINK_SPEED;
        shrinkAccel   = SHRINK_ACCEL;
        over          = false;
        obtainable    = false;
        effectType    = ItemData.EffectType.Money;
        effectSpeed   = 0f;
        if (itemData != null)
        {
            obtainable  = itemData.obtainable;
            effectType  = itemData.effectType;
            effectSpeed = itemData.effectValue;
        }
        scaleChangeDuration = 0f;
        scaleChangeElapsed  = 0f;
        startScale          = originalScale;
        targetScale         = originalScale;
        accumulatedEffect   = 0f;
    }
示例#3
0
 protected virtual void ExtractFireController()
 {
     fireController = GetComponent <VFXFireController>();
 }