public ChatService() { BlogContext dbContext = new BlogContext(); ChatRepositiries = new ChatFunction(dbContext); messageRepositories = new ChatMessageFunction(dbContext); userRepositories = new UserFunction(dbContext); }
public void FindUICanvas() { UICanvas UIcanvas = GameObject.FindGameObjectWithTag("UICanvas").GetComponent <UICanvas>(); UIStat = UIcanvas.stat.GetComponent <UIStat>(); UIIcon = UIcanvas.icon.GetComponent <UIIcon>(); UISkill = UIcanvas.skill.GetComponent <UISkill>(); UIRecall = UIcanvas.recall; UIRightTop = UIcanvas.rightTopUI.GetComponent <UIRightTop>(); isUICanvasFind = true; chatFunction = GameObject.FindGameObjectWithTag("ChatManager").GetComponentInChildren <ChatFunction>(); csTextPool = GameObject.FindGameObjectWithTag("CSText").GetComponent <CsTextPool>(); }
private void Awake() { //풀링 MakeFxPool("Going"); MakeFxPool("Missing"); MakeFxPool("Help"); MakeFxPool("Danger"); MakeFxPool("Target"); MakeFxPool("Here"); //동기화 SenderName = PlayerData.Instance.championName; Player = GameObject.FindGameObjectWithTag("Player"); Chatmanager = GameObject.FindGameObjectWithTag("ChatManager").GetComponentInChildren <ChatFunction>(); }
private void OnLevelWasLoaded(int level) { if (SceneManager.GetSceneByBuildIndex(level).name.Equals("InGame")) { PhotonNetwork.OnEventCall += SpellEffectSync; cursor = GameObject.FindGameObjectWithTag("MouseCursor").GetComponent <AOSMouseCursor>(); Ping = GameObject.FindGameObjectWithTag("PingPool").GetComponent <PingPooling>(); cam = Camera.main.GetComponent <RTS_Cam.RTS_Camera>(); minimap = GameObject.FindGameObjectWithTag("MinimapClick").GetComponent <MinimapClick>(); chat = GameObject.FindGameObjectWithTag("ChatManager").GetComponentInChildren <ChatFunction>(); SpellContainer = GameObject.FindGameObjectWithTag("SpellPooling"); makepool(); isInGameScene = true; } }
void OnLevelWasLoaded(int level) { if (!SceneManager.GetSceneByBuildIndex(level).name.Contains("InGame")) { SetCursor(0, Vector2.zero); } else { fxPool = GameObject.FindGameObjectWithTag("MouseFxPool").GetComponent <MouseFxPooling>(); Target = GameObject.FindGameObjectWithTag("PlayerA*Target").transform; if (Target == null) { Target = GameObject.FindGameObjectWithTag("PlayerA*Target").transform; } chatfunction = GameObject.FindGameObjectWithTag("ChatManager").GetComponentInChildren <ChatFunction>(); } }
// Use this for initialization void Start() { chatfunction = ChatUI.transform.parent.GetComponent <ChatFunction>(); }