void Start() { mainSceneManager = Camera.main.GetComponent <MainSceneManager>(); EventManager eventManager = WindyFramework.FrameworkEntry.GetComponent <EventManager>(); eventManager.Subscribe(EventsId.MOUSE_LEFT_BUTTON_CLICKED, OnClick); PlayerManager playerManager = WindyFramework.FrameworkEntry.GetComponent <PlayerManager>(); playerStageInfoManager = playerManager.playerStageInfoManager; }
public void Start() { Camera mainCamera = Camera.main; DataManager dataManager; dataManager = WindyFramework.FrameworkEntry.GetComponent <DataManager>(); stageDataSheet = dataManager.GetDataSheet <StageDataRow>("Stage"); PlayerManager playerManager; playerManager = WindyFramework.FrameworkEntry.GetComponent <PlayerManager>(); playerStageInfoManager = playerManager.playerStageInfoManager; stageInfo = mainCamera.transform.Find("MainScene").Find("StageInfo").GetComponent <TMPro.TextMeshPro>(); monsterStrength = mainCamera.transform.Find("MainScene").Find("Monster").Find("MonsterStrength").Find("StrengthValue").GetComponent <TMPro.TextMeshPro>(); CurMonsterLevel = 10; }