File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class OpenMotion : MonoBehaviour
{
public GameObject[] goMotionGroup;
public GameObject myMotion;
public GameObject[] goMotionList;
public GameObject myMotionList;
public Button btnSetMotion;
public bool isBase;
public int animIndex;
// Start is called before the first frame update
void Start()
{
btnSetMotion = gameObject.GetComponent<Button>();
btnSetMotion.onClick.AddListener(delegate { SetMotionGroup(); });
}
public void SetMotionGroup()
{
for(int i = 0; i < goMotionGroup.Length; i++)
{
goMotionGroup[i].SetActive(false);
}
for(int i = 0; i < goMotionList.Length; i++)
{
goMotionList[i].SetActive(false);
}
if(myMotion != null)
{
myMotion.SetActive(true);
}
if(myMotionList != null)
{
myMotionList.SetActive(true);
}
PlayerPrefs.SetInt("TKNum", animIndex);
}
// Update is called once per frame
void Update()
{
}
}