public void AddAloneBattleBillboard(Vector3 pos, int num, AloneBattleBillboardType type)
    {
        //return; //By MaiFeo
        AloneBattleBillboard ab = null;

        switch (type)
        {
        case AloneBattleBillboardType.Exp:
            LoggerHelper.Debug("---------Get Exp" + num);
            ab = new GetExp(num);
            break;

        case AloneBattleBillboardType.Gold:
        default:
            LoggerHelper.Debug("---------Get Gold" + num);
            ab = new GetGold(num);
            break;
        }

        ab.SetBillboardPos(pos);
    }
 public void AddAloneBattleBillboard(Vector3 pos, int num, AloneBattleBillboardType type)
 {
     pos = GameObject.Find("Camera").GetComponentsInChildren<Camera>(true)[0].ScreenToWorldPoint(Camera.mainCamera.WorldToScreenPoint(pos));
     BillboardViewManager.Instance.AddAloneBattleBillboard(pos, num, type);
 }
 public void AddAloneBattleBillboard(Vector3 pos, int num, AloneBattleBillboardType type)
 {
     pos = GameObject.Find("Camera").GetComponentsInChildren <Camera>(true)[0].ScreenToWorldPoint(Camera.mainCamera.WorldToScreenPoint(pos));
     BillboardViewManager.Instance.AddAloneBattleBillboard(pos, num, type);
 }
示例#4
0
    public void AddAloneBattleBillboard(Vector3 pos, int num, AloneBattleBillboardType type)
    {
        //return; //By MaiFeo
        AloneBattleBillboard ab = null;

        switch (type)
        {
            case AloneBattleBillboardType.Exp:
                LoggerHelper.Debug("---------Get Exp" + num);
                ab = new GetExp(num);
                break;

            case AloneBattleBillboardType.Gold:
            default:
                LoggerHelper.Debug("---------Get Gold" + num);
                ab = new GetGold(num);
                break;
        }

        ab.SetBillboardPos(pos);
    }