コード例 #1
0
    private void Start()
    {
        sm = GameObject.Find("Scene Manager").GetComponent <SceneManagery>();

        variants = GameObject.FindGameObjectWithTag("Rooms").GetComponent <RoomVariants>();
        Destroy(gameObject, waitTime);
        Invoke("Spawn", 0.2f);
    }
コード例 #2
0
 private void Awake()
 {
     variants = GameObject.FindGameObjectWithTag("Rooms").GetComponent <RoomVariants>();
 }