37 lines
923 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class RowerSelector : PFUIPanel
{
// Start is called before the first frame update
void Start()
{
var btnRide = transform.Find("Container/BtnRide").gameObject;
if (btnRide)
{
UIManager.AddEvent(btnRide, UnityEngine.EventSystems.EventTriggerType.PointerClick, b =>
{
Close();
UIManager.ShowHomePanel();
});
}
var btnRower = transform.Find("Container/BtnRower").gameObject;
if (btnRower)
{
UIManager.AddEvent(btnRower, UnityEngine.EventSystems.EventTriggerType.PointerClick, b =>
{
Close();
UIManager.ShowRowerPanel();
});
}
}
// Update is called once per frame
void Update()
{
}
}