Example #1
0
 public void Awake()
 {
     this._transform = base.GetComponent <Transform>();
     this._Particule = base.GetComponentInChildren <CParticuleSystem>();
     this._moved     = base.GetComponent <CMoved>();
     this._fire      = base.GetComponent <CFire>();
 }
Example #2
0
            private static void FinishRALaunch(object state)
            {
                object[] states = (object[])state;

                Mobile  from     = (Mobile)states[0];
                Point3D endRALoc = (Point3D)states[1];
                Map     map      = (Map)states[2];
                Mobile  killed   = (Mobile)states[3];

                int hue = killed.Hue;

                if (hue >= 30000)
                {
                    hue = 0;
                }

                if (map == null || map == Map.Internal)
                {
                    return;
                }

                Effects.PlaySound(endRALoc, map, 458);

                CRightArm rightarm = new CRightArm();

                rightarm.Movable = true;
                rightarm.Hue     = hue;
                rightarm.MoveToWorld(endRALoc, map);

                CFire fire = new CFire();

                fire.Movable = false;
                fire.MoveToWorld(endRALoc, map);
            }
Example #3
0
            private static void FinishTorsoLaunch(object state)
            {
                object[] states = (object[])state;

                Mobile  from        = (Mobile)states[0];
                Point3D endTorsoLoc = (Point3D)states[1];
                Map     map         = (Map)states[2];
                Mobile  killed      = (Mobile)states[3];

                int hue = killed.Hue;

                if (hue >= 30000)
                {
                    hue = 0;
                }

                if (map == null || map == Map.Internal)
                {
                    return;
                }

                Effects.PlaySound(endTorsoLoc, map, 458);

                CTorso torso = new CTorso();

                torso.Movable = true;
                torso.Hue     = hue;
                torso.MoveToWorld(endTorsoLoc, map);

                CFire fire = new CFire();

                fire.Movable = true;
                fire.MoveToWorld(endTorsoLoc, map);
            }
Example #4
0
    public CPlayer()
    {
        setFrames(Resources.LoadAll <Sprite> ("Sprites/player"));
        setName("player");
        setSortingLayerName("Player");

        setRadius(RADIUS);

        setBounds(0, 0, CGameConstants.SCREEN_WIDTH, CGameConstants.SCREEN_HEIGHT);
        setBoundAction(CGameObject.WRAP);

        mFire = new CFire();
    }
Example #5
0
 override public void destroy()
 {
     base.destroy();
     mFire.destroy();
     mFire = null;
 }