void Start()
 {
     foreach (Transform item in transform)
     {
         AnimObj anim = item.GetComponent <AnimObj>();
         animObjects.Add(anim);
     }
     RegisterActionCommand();
 }
 public AnimCommand(string stapName, AnimObj anim, bool endactive = true) : base(stapName)
 {
     this.anim       = anim;
     this.endactive  = endactive;
     this.undoActive = anim.gameObject.activeSelf;
 }