Quantcast
Channel: Answers by "CaKeMeaT"
Browsing all 65 articles
Browse latest View live
↧

Answer by CaKeMeaT

XmlSerializer serializer = new XmlSerializer(typeof(**Item**)); is dealing specifically with the serialization of type Item.

View Article


Answer by CaKeMeaT

I had to change all of my scripts to JoystickJS(javascript) and JoystickCS(c#) in order to get past this. Really just circumventing the problem, since I couldn't identify the origin.

View Article


Answer by CaKeMeaT

I have had marginal success with getting data from NIST servers. like this.. [link text][1] [1]: https://nickstips.wordpress.com/2010/02/12/c-get-nist-internet-time/

View Article

Answer by CaKeMeaT

the problem with greater-or-equal-than opertaions is that they can be pass as true even when you expect the later conditions to trigger instead. ammobar.GetComponent(UI.Slider).value <= 100) will...

View Article

Answer by CaKeMeaT

Cant run the code where I am. But I imagine you are seeing objects do this: move towards. collide. bounce back slightly. move towards. collide. bounce back slightly. -repeat- I see this a lot because...

View Article


Answer by CaKeMeaT

should your enable and destroy bools be inside the class ?

View Article

Answer by CaKeMeaT

Async commands will cause your code to branch out right? so you're loading side-by-side to your other code.

View Article

Answer by CaKeMeaT

It looks as if it should work, maybe use a bool to explicitely control the condition if (!IsThisThingAlreadyAssigned) { ObjectiveTHing = GameObject.Find (ObjectiveName); IsThisThingAlreadyAssigned =...

View Article


Answer by CaKeMeaT

public GameObject sourceObject; // drop your object from inspector to this slot. // then later GameObject t = (GameObject)Instantiate(sourceObject, transform.position, transform.rotation);

View Article


Answer by CaKeMeaT

I have researched this topic, and everything I can find says that System.IO is not available to Windows apps

View Article

Answer by CaKeMeaT

You may want to pay special attention to triggers vs colliders and OnCollisionEnter vs OnTriggerEnter

View Article

Answer by CaKeMeaT

if(v.GetComponent() != null && v.GetComponent().getBlocked()==false)

View Article

Answer by CaKeMeaT

last_number = number; // number should be renamed "spawn_point if(number == lastnumber) { number++; //(be careful not to go out of bounds) last_number = number; }

View Article


Answer by CaKeMeaT

because of the brilliance of physics layers, and your ability to choose which ones collide with the others, I would REALLY recommend you actually use tags. If you cant come up with a naming convention...

View Article

Answer by CaKeMeaT

I resolved the problem (I guess) by removing [Serializable] tags, and then removing pointer-style references inside my InventoryScript that were used like a linked list. Example: InventoryItem next;...

View Article


Answer by CaKeMeaT

static int?

View Article

Answer by CaKeMeaT

I use a distance check to display a hovering name/description. I used almost this exact script for items, signs, enemies, NPC. void OnGUI() { if (my_cam == null) { my_cam = GameObject.Find ("Main...

View Article


Answer by CaKeMeaT

ImportantNumbersLikeSpeed * Time.deltaTime;

View Article

Answer by CaKeMeaT

your ship variable(object reference really) is of typePrefabPlayerShip (because) ---> private PrefabPlayerShip ship;

View Article

Answer by CaKeMeaT

You can either check for when your NextFire is, or you can check when your LastFire was. Logic: Time.time >= NextFire or LastFire + Interval <= Time.time

View Article
Browsing all 65 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>