Skip to content

Instantly share code, notes, and snippets.

@Hironyi
Last active June 17, 2021 08:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hironyi/10d6692ef9e156fd9bb72c818d87c3cf to your computer and use it in GitHub Desktop.
Save Hironyi/10d6692ef9e156fd9bb72c818d87c3cf to your computer and use it in GitHub Desktop.
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