¡¡
¡¡¾åµ¤ÎÌäÂê¤ÈƱ¤¸¤¯¡¢Test_1¡¢Test_2¥¯¥é¥¹¤¬¤¢¤ê¡¢¤½¤ì¤¾¤ì¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥ÈA,B¤Ë¥¢¥¿¥Ã¥Á¤µ¤ì¤Æ¤¤¤ë¤È¤·¤Þ¤¹¡£
¤³¤Î¤È¤
¡Test_1¤ÎÊÑ¿ônumber¤ÎÃͤòTest_2¤ÎSetup´Ø¿ô¤ËÅϤ·¤Æ¡¢Test_2¤ÎcountÊÑ¿ô¤ËÂåÆþ¤¹¤ë¤Ë¤Ï¤É¤Î¤è¤¦¤Ê½èÍý¤òTest_1¤ÎStart¤Ë²Ã¤¨¤ì¤Ð¤è¤¤¤Ç¤·¤ç¤¦¤«¡£
¢Test_2¤ÎSetup´Ø¿ô¤ò¤É¤Î¤è¤¦¤Ë½¤Àµ¤¹¤ì¤Ð¡¢Test_1¤Înumber¤ÎÃͤò¼õ¤±¼è¤ì¤ë¤Ç¤·¤ç¤¦¤«¡£
using System.Collections;
using UnityEngine;
public class Test_1 : MonoBehaviour
{
¡¡¡¡int number = 10;
¡¡¡¡¡¡
private void Start(){
}
}
using System.Collections;
using UnityEngine;
public class Test_2 : MonoBehaviour
{
int count = 0;
private void Setup(){
}
}