public JSpawnState(JSpawn action, GameObject target) : base(action, target) { ActionOne = action.ActionOne; ActionTwo = action.ActionTwo; ActionStateOne = (JFiniteTimeActionState)ActionOne.StartAction(target); ActionStateTwo = (JFiniteTimeActionState)ActionTwo.StartAction(target); }
public CCSpawnState(CCSpawn action, CCNode target) : base(action, target) { ActionOne = action.ActionOne; ActionTwo = action.ActionTwo; ActionStateOne = (CCFiniteTimeActionState)ActionOne.StartAction(target); ActionStateTwo = (CCFiniteTimeActionState)ActionTwo.StartAction(target); }
public static void RunEitherMonadSample() { var actionOne = new ActionOne(); var actionTwo = new ActionTwo(); actionOne .Bind(0) .Bind(actionTwo); }