(スクリプト)
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ChangeRotation : MonoBehaviour
{
private void OnMouseDown()
{
this.gameObject.transform.Rotate(0, 90, 0);
}
}
(設定)
・Colliderを追加すること
(実行結果)