Example #1
0
    public override void DoAffect(AffectorDelegate startDel, AffectorDelegate endDel, params object[] args)
    {
        base.DoAffect(startDel, endDel, args);

        _mAnimEndCounter = 0;
        _mDestPosition   = (Vector3)args[0];
        _mScale          = (Vector3)args[1];

        if (_mGameObjectList.Count != 4)
        {
            return;
        }
        foreach (GameObject go in _mGameObjectList)
        {
            go.SetActiveRecursively(false);
        }

        StartCoroutine(DoCoroutineAffector());
    }
Example #2
0
    // public void RemoveItem(GameObject go)
    // {
    //  _mGameObjectList.Remove(go);
    // }

    public virtual void DoAffect(AffectorDelegate startDel, AffectorDelegate endDel, params object[] args)
    {
        _mStartDelegate = startDel;
        _mEndDelegate   = endDel;
    }
Example #3
0
 public override void DoAffect(AffectorDelegate startDel, AffectorDelegate endDel, params object[] args)
 {
     base.DoAffect(startDel, endDel, args);
     //modify laraft 2012-9-26
     Globals.Instance.MCameraController.StartCoroutine(DoCoroutineAffector());
 }