/// <summary> /// 清理引用 /// </summary> public void ClearReference() { enterMonster = null; enterNpc = null; // enterWorkBench = null; enterCrystal = null; enterTreasureBox = null; enterObstacle = null; enterTrapSwitch = null; enterDoor = null; enterBillboard = null; enterHole = null; enterMovableBox = null; enterTransport = null; enterPlant = null; ClearAllEffectStatesAndSkillCallBacks(); // trapTriggered = null; bmCtr = null; // playerLoseCallBack = null; bpUICtr = null; }
public void InitBattlePlayer() { Transform canvas = TransformManager.FindTransform("ExploreCanvas"); bpUICtr = canvas.GetComponent <BattlePlayerUIController> (); }