個別に元の姿勢に戻れるようにする


個別に元の姿勢に戻る
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Recover : MonoBehaviour
{
public string playerName;
private Vector3 rot;
void Update()
{
rot = transform.eulerAngles;
if(Input.GetButtonDown("Recover" + playerName))
{
transform.eulerAngles = new Vector3(0, rot.y, 0);
}
}
}






個別に元の姿勢に戻る
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Recover : MonoBehaviour
{
public string playerName;
private Vector3 rot;
void Update()
{
rot = transform.eulerAngles;
if(Input.GetButtonDown("Recover" + playerName))
{
transform.eulerAngles = new Vector3(0, rot.y, 0);
}
}
}




個別に元の姿勢に戻れるようにする