| 123456789101112131415161718192021 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- /*
- 闯关场景专用靶子Canvas
- 需求:在打猎游戏里,一开始屏幕中央给一个靶子(类似静止靶界面让玩家一开始视角校准用的)
- */
- public class ChallengeTargetCanvas : MonoBehaviour
- {
- void Start()
- {
- transform.Find("RawImage").gameObject.SetActive(true);
- GameEventCenter.ins.onBowArrowShootOut += Event_OnBowArrowShootOut;
- }
- void Event_OnBowArrowShootOut(ArmBow a, Arrow b) {
- GameEventCenter.ins.onBowArrowShootOut -= Event_OnBowArrowShootOut;
- Destroy(gameObject);
- }
- }
|