Example #1
0
    //collision callback, here we release some explode effect at the collison pos.
    void OnMissileCollision(Xft.CollisionParam param)
    {
        XffectComponent eft = EffectCache.GetEffect("explode");

        eft.transform.position = param.CollidePos;
        eft.Active();
    }
Example #2
0
 void OnPlaneCollision(Xft.CollisionParam param)
 {
     //GameObject g = param.CollideObject;
     //Vector3 pos = param.CollidePos;
     Xft.EffectNode ef = param.effectNode;
     ef.SetBounce();
     //Debug.Log("collision is "+g+" "+pos);
 }
Example #3
0
 //callback function.
 void OnCollision(Xft.CollisionParam param)
 {
     Debug.Log("collision detect!, object:" + param.CollideObject.name + " collide pos:" + param.CollidePos);
 }
Example #4
0
 void OnConcentrateHit(Xft.CollisionParam param)
 {
     EffectCache.ReleaseEffect("exp_small", param.CollidePos);
 }
Example #5
0
 //collisions
 void OnSpreadHit(Xft.CollisionParam param)
 {
     EffectCache.ReleaseEffect("exp_small", param.CollidePos);
 }