예제 #1
0
    IEnumerator Start()
    {
        yield return(null);

        //Screen.fullScreen = true;
        GameData.Par = HPCanvas;
        skillTip     = skillTipBase;
        NetWorkScript.Instance.write(Protocol.TYPE_FIGHT, 0, FightProtocol.ENTER_CREQ, null);
    }
    private SkillTipSingleton()
    {
        GameObject tip = Instantiate(ResourceMgr.Instance.LoadSync("skillTip", null, true) as GameObject);

        tip.transform.parent = TransformFinder.Instance.GetTransform("skillTipContainer");
        skillTip             = tip.GetComponent <SkillTip>();
        if (skillTip == null)
        {
            skillTip = tip.AddComponent <SkillTip>();
        }
    }