예제 #1
0
        public static void MakeColonistActionOverlay(Pawn pawn, ThingDef moteDef)
        {
            MoteThrownAttached moteThrownAttached = (MoteThrownAttached)ThingMaker.MakeThing(moteDef, null);

            moteThrownAttached.Attach(pawn);
            moteThrownAttached.Scale = 1.5f;
            moteThrownAttached.SetVelocity(Rand.Range(20f, 25f), 0.4f);
            GenSpawn.Spawn(moteThrownAttached, pawn.Position, pawn.Map);
        }
예제 #2
0
        public static void MakeColonistActionOverlay(Pawn pawn, ThingDef moteDef)
        {
            MoteThrownAttached obj = (MoteThrownAttached)ThingMaker.MakeThing(moteDef);

            obj.Attach(pawn);
            obj.exactPosition = pawn.DrawPos;
            obj.Scale         = 1.5f;
            obj.SetVelocity(Rand.Range(20f, 25f), 0.4f);
            GenSpawn.Spawn(obj, pawn.Position, pawn.Map);
        }
예제 #3
0
        public static void MakeIconOverlay(Pawn pawn, ThingDef moteDef)
        {
            MoteThrownAttached moteThrown = (MoteThrownAttached)ThingMaker.MakeThing(moteDef);

            moteThrown.Attach(pawn);
            moteThrown.exactPosition = pawn.DrawPos;
            moteThrown.Scale         = 1.0f;
            moteThrown.SetVelocity(Rand.Range(20f, 25f), 0.4f);
            GenSpawn.Spawn(moteThrown, pawn.Position, pawn.Map);
        }