Ejemplo n.º 1
0
    public override void LoadData(string[] col)
    {
        base.LoadData(col);
        itemType        = ItemType.Weapon;
        wpAtkMotionID   = (WpAtkMotionID)int.Parse(col[4]);
        spAtkMotionID   = int.Parse(col[5]);
        localMotionID1H = int.Parse(col[6]);
        localMotionID2H = int.Parse(col[7]);
        ATK             = new Damage();
        ATK.physical    = int.Parse(col[8]);

        try
        {
            modelPath = col[9];
            if (modelPath == null)
            {
                return;
            }
            model = Resources.Load <GameObject>(modelPath);
            if (model == null)
            {
                return;
            }
            //model = Instantiate(model);
        }
        catch (Exception e)
        {
            Console.WriteLine(e);
            throw;
        }
    }
Ejemplo n.º 2
0
 public void SetAtkAnimationInt(WpAtkMotionID id)
 {
     ac.animator.SetInteger("attackMotionType", (int)id);
 }