38 lines
1.1 KiB
C#
38 lines
1.1 KiB
C#
using UnityEngine;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Beyond
|
|
{
|
|
public static class bItemManagerUtilities
|
|
{
|
|
public static void CreateDefaultEquipPoints(bItemManager itemManager)
|
|
{
|
|
|
|
var animator = itemManager.GetComponent<Animator>();
|
|
if (itemManager.equipPoints == null)
|
|
itemManager.equipPoints = new List<EquipPoint>();
|
|
|
|
#region LeftEquipPoint
|
|
var equipPointL = itemManager.equipPoints.Find(p => p.equipPointName == "LeftArm");
|
|
if (equipPointL == null)
|
|
{
|
|
EquipPoint pointL = new EquipPoint();
|
|
pointL.equipPointName = "LeftArm";
|
|
itemManager.equipPoints.Add(pointL);
|
|
}
|
|
#endregion
|
|
|
|
#region RightEquipPoint
|
|
var equipPointR = itemManager.equipPoints.Find(p => p.equipPointName == "RightArm");
|
|
if (equipPointR == null)
|
|
{
|
|
EquipPoint pointR = new EquipPoint();
|
|
pointR.equipPointName = "RightArm";
|
|
itemManager.equipPoints.Add(pointR);
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|
|
}
|