Exemple #1
0
 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();
 }
Exemple #2
0
    //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());
    }