Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
C# is a multi-paradigm, managed, strongly typed, garbage-collected, programming language created by Microsoft in conjunction with the .NET platform.
0
votes
How to access UI elements in a canvas in UnityUI
There are multiple possibilities here.
You can use the static function GameObject.Find() to find a gameobject by
name in the entire scene. However, this function is a bit slow so try
to call it only …
6
votes
Accepted
How to handle multiple enemies with the same script?
The start of your reasoning is good, but you get lost when trying to reduce the enemy HP. Let's restart from the Sword:
In your Sword script, you have a function OnTriggerEnter2D.
In this function, y …
1
vote
Determine facing direction mecanim 2d movement
Add a Vector2 private variable to your class.
This variable will tells you at any time where your character is facing:
private Vector2 facingDirection = Vector2.zero;
...
void FixedUpdate () {
V …