我们创建了 Fontainebleau 演示来说明摄影photogrammetry流程和 LayeredLit 着色器的使用。
您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

33 行
973 B

using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Playables;
public class InfoPanelManager : MonoBehaviour
{
private int interactionSelector = 0;
private InfoPanelInteraction[] interactions;
private void Start()
{
interactions = GetComponents<InfoPanelInteraction>();
}
private void Update()
{
if (Input.GetButtonDown("Fire1"))
{
Debug.Log("length"+ interactions.Length);
if (interactionSelector <= interactions.Length) interactionSelector = interactionSelector + 1;
if (interactionSelector > interactions.Length) interactionSelector = 1;
foreach (InfoPanelInteraction interaction in interactions)
{
if (interaction.executionOrder == interactionSelector) interaction.OnActivate();
Debug.Log("interaction" + interactionSelector);
}
}
}
}