Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Tester : MonoBehaviour
- {
- private void Awake()
- {
- Debug.Log(TryGetComponent<Fruit>(out var result));
- }
- }
- class Fruit : MonoBehaviour
- {
- }
- class Banana : Fruit
- {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement