void Start() { m_originPos = transform.position; theInGame = FindObjectOfType <InGameManager>(); theCardInfo = FindObjectOfType <MyCardInfo>(); theCStat = FindObjectOfType <CharacterStat>(); m_aniCtrl = GetComponent <Animator>(); // 해당 유형의 비활성화 된 객체도 가져온다 // theCharSlot = Resources.FindObjectsOfTypeAll<CharacterSlot>(); // 해당 유형의 비활성화 된 객체도 가져온다 // InGameManager 에서 몇 번째꺼가 켜져있나 //m_charActiveNum = (int)eCharNum * 9 + m_charSlotNum; // InGameManager 에서 몇 번째꺼가 켜져있나 dist = 1000; // 스폰 시 최초 한 번 실행 될 effect EffectActive.EffectInstance.CharacterSpawn(this.transform); // 스폰 시 최초 한 번 실행 될 effect }
private string GetResStr(MyCardInfo info) { try { string str = ""; str += "info.Active:" + info.Active + Environment.NewLine; str += "info.CardRegistered:" + info.CardRegistered + Environment.NewLine; str += "info.DaysLeft:" + info.DaysLeft + Environment.NewLine; str += "info.Discount:" + info.Discount + Environment.NewLine; str += "info.FirstVisitDate:" + info.FirstVisitDate + Environment.NewLine; str += "info.NumberOfVisits:" + info.NumberOfVisits + Environment.NewLine; str += "info.PersonsFullName:" + info.PersonsFullName + Environment.NewLine; str += "info.PurchaseIsRegistered:" + info.PurchaseIsRegistered + Environment.NewLine; str += "info.ShowInfo:" + info.ShowInfo + Environment.NewLine; str += "info.TemporarilyInactive:" + info.TemporarilyInactive + Environment.NewLine; str += "info.VisitCounterIncreased:" + info.VisitCounterIncreased + Environment.NewLine; return(str); } catch (ExecutionEngineException e) { return("info error " + e.Message); } }
// Start is called before the first frame update void Start() { InGameInstance = this; m_curGameState = eGameState.Ready; theBase = FindObjectOfType <BaseSceneManager>(); theSound = FindObjectOfType <SoundManager>(); theFade = FindObjectOfType <FadeManager>(); theCamera = FindObjectOfType <CameraManager>(); theCardInfo = FindObjectOfType <MyCardInfo>(); theBuyList = FindObjectOfType <CardBuyList>(); m_myCard = new List <GameObject>(); ani = GetComponent <Animator>(); m_shopBtn.GetComponent <Button>().onClick.AddListener(delegate { ClickShopBtn(); }); m_settingBtn.GetComponent <Button>().onClick.AddListener(delegate { ClickSettingBtn(); }); m_optionBtn.GetComponent <Button>().onClick.AddListener(delegate { ClickOptionBtn(); }); m_backToInGameBtn.GetComponent <Button>().onClick.AddListener(delegate { ClickBackToInGameBtn(); }); m_backToLobbyBtn.GetComponent <Button>().onClick.AddListener(delegate { ClickExitToLobbyBtn(); }); m_skipReadyForPlayBtn.GetComponent <Button>().onClick.AddListener(delegate { ClickSkipReady(); }); }