public void SetAnims(UnitAnim animAimWeaponRight, UnitAnim animAimWeaponLeft, UnitAnim animShootWeaponRight, UnitAnim animShootWeaponLeft) { this.animAimWeaponRight = animAimWeaponRight.CloneDeep(); this.animAimWeaponLeft = animAimWeaponLeft.CloneDeep(); this.animShootWeaponRight = animShootWeaponRight.CloneDeep(); this.animShootWeaponLeft = animShootWeaponLeft.CloneDeep(); SetActive(); }
//private string debugText = ""; public V_UnitSkeleton_Composite_Weapon(V_Object parentObject, V_UnitSkeleton unitSkeleton, UnitAnim animAimWeaponRight, UnitAnim animAimWeaponLeft, UnitAnim animShootWeaponRight, UnitAnim animShootWeaponLeft) { this.parentObject = parentObject; this.unitSkeleton = unitSkeleton; this.animAimWeaponRight = animAimWeaponRight.CloneDeep(); this.animAimWeaponLeft = animAimWeaponLeft.CloneDeep(); this.animShootWeaponRight = animShootWeaponRight.CloneDeep(); this.animShootWeaponLeft = animShootWeaponLeft.CloneDeep(); SetPositionOffset(new Vector3(0, -2)); SetInactive(); //CodeMonkey.CMDebug.TextUpdater(() => debugText, Vector3.zero, parentObject.GetLogic<V_IObjectTransform>().GetTransform()); }