EnergyEfficiencyManagement/Assets/Scripts/Test/Launch.cs

40 lines
873 B
C#

using SK.Framework;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Launch : MonoBehaviour
{
public Variables Variables;
public Transform obj1;
public TaskExample_Bool taskExample;
private void Awake()
{
Variables.Set<Transform>("Obj2", obj1);
}
// Start is called before the first frame update
void Start()
{
UIView.Load<HomeView>(ViewLevel.TOP);
//UIView.Get<HomeView>();
//UIView.Show<HomeView>();
//UIView.Hide<HomeView>();
//UIView.Unload<HomeView>();
}
// Update is called once per frame
void Update()
{
if (Input.GetKeyDown(KeyCode.R))
{
Debug.Log("Ìø²½");
taskExample._expectStepIndex = 1;
TaskManager.Instance.JumpToStepById(2);
}
}
}