ProTips - aefreedman/SP2018_IntermediateGameDev GitHub Wiki
2D Platformer Controller Tutorial
Quality of Life Shortcuts
- You have static access to the
Main Camera
component
in any script by referencingUnityEngine.Camera.main
.- You can access any other component via the component reference, for example:
UnityEngine.Camera.main.gameObject.transform.position = new Vector3(0, 0, 0);
- You can access any other component via the component reference, for example: