36. Three rendering modes of Canvas
Screen Space - Overlay : UI elements directly overlay on top of any camera.
Screen Space - Camera : You need to specify a camera. The UI component can control the distance from the camera and interact with objects in the scene such as occlusion.
World Space : The canvas has the same occlusion relationship with the world space as the scene objects, can be rotated, 3D UI production, no screen adaptation.
37. Mono life cycle
Initialization : Awake -> OnEnable ->Reset->Start ->
Physical calculation : FixedUpdate -> OnTrigger/Collision->yield WaitForFixedUpdate->
Game logic : InputEvent -> Update-> yield (wake up the suspended coroutine, the previous fixedUpdate also has yield) ->
Animation operation : OnAnimatorMove/IK (it varies depending on how the Animator’s UpdateMode is selected.
Rendering : Scene Rendering -> Gizmos ->GUI ->
Application processing : OnApplicationPause -> OnApplicationQuit ->
Exit : OnDisable -> OnDestory
38. How to design a skill system and buff system
39. The kth largest number in the array
Sword Points Offer II 076. The kth largest number in the array
Heap method, constantly maintain the top of the heap
Merge sort
40. Balance the insertion time complexity of a binary tree?
The query is Log n. Once you find out where it should be inserted, you can insert it at a constant level. The total time complexity is Log n.