public void AddAction(MyMotivatedAction a) { Actions.Add(a); a.SetMyIndex(Actions.Count - 1); AcitonHistory.AddAction(this.Actions.Count - 1); }