Esempio n. 1
0
    void OnClick()
    {
        if(killer == null)
        {
            //ModelMgr.Instance.LoadModel(modelPath[0], OnAnimLoad, OnAninLoading, null);
            killer = new Role(9);
            killer.AddAttach(88, Role.GetHardPointName(EHardPoint.LeftHand));
            //killer.LoadAnim("file://D:/WorkSpace/sgqy8thunk/AssetBundle/r_a02.unity3d");
            killer.PlayAnim("r_a02");
            killer.MountRide(111);

            killer.SelectTarget = objTarget;
        }
        else
        {
            float time = Random.Range(1f, 3f);
            killer.UseSkill(1, time);
            //Debug.Log("time = " + time.ToString());
        }
        //roleList.Add(killer);
    }