HKMBFZ/Assets/Scripts/Szz_Scripts/UI/181/ZhuYuanFangShiPage.cs

41 lines
911 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ZhuYuanFangShiPage : UIPageBtnEventBase
{
public GameObject Éä»÷¿ØÖÆ;
public GameObject page1;
public override void OnF1Click()
{
base.OnF1Click();
shejiControl = Instantiate(Éä»÷¿ØÖÆ, controlParent);
shejiControl.GetComponent<SheJiControl>().mono = this;
shejiControl.SetActive(true);
//AnimationModel.instance.Show181Tween();
}
GameObject shejiControl;
public Transform controlParent;
public override void OnF2Click()
{
base.OnF2Click();
}
public override void OnF4Click()
{
base.OnF4Click();
if (!Éä»÷¿ØÖÆ.activeInHierarchy)
{
gameObject.SetActive(false);
}
//else
// Destroy(shejiControl);
//Éä»÷¿ØÖÆ.SetActive(false);
}
}