
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
카드 뒤집게 하는 명령어 선생님이랑 똑같이 했는데
카드가 흔들리기만 하고 버튼이 안먹어요ㅠㅠ
여러번 다시했는데
예제랑 똑같이 했거든요
근데도 왜 안될까용..
작성한 코드 및 에러 메세지
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class card : MonoBehaviour
{
public Animator anim;
public void openCard()
{
anim.SetBool("isOpen", true);
transform.Find("front").gameObject.SetActive(true);
transform.Find("back").gameObject.SetActive(false);
}
}
