-
-
Save Hironyi/10d6692ef9e156fd9bb72c818d87c3cf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class GetComponentTest : MonoBehaviour | |
{ | |
public TestClass testClass; | |
public void Start() | |
{ | |
testClass = GetComponent<TestClass>(); | |
Test(); | |
} | |
public void Test() | |
{ | |
testClass.Test(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment