Пример #1
0
        public ChatService()
        {
            BlogContext dbContext = new BlogContext();

            ChatRepositiries    = new ChatFunction(dbContext);
            messageRepositories = new ChatMessageFunction(dbContext);
            userRepositories    = new UserFunction(dbContext);
        }
Пример #2
0
    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>();
    }
Пример #3
0
    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>();
    }
Пример #4
0
    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;
        }
    }
Пример #5
0
 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>();
     }
 }
Пример #6
0
 // Use this for initialization
 void Start()
 {
     chatfunction = ChatUI.transform.parent.GetComponent <ChatFunction>();
 }