Skip to content
Snippets Groups Projects
Verified Commit c05bd44a authored by Adrian Paschkowski's avatar Adrian Paschkowski :thinking:
Browse files

DamageIndicatorCanvas: Set main camera

parent 051286e5
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,8 @@ public class DamageIndicatorCanvas : MonoBehaviour
void Awake()
{
rectTransform = GetComponent<RectTransform>();
var canvas = GetComponent<Canvas>();
canvas.worldCamera = Camera.main;
}
private void Update()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment