public override void MakeMove(PlayInstructs instruct) { base.MakeMove(instruct); currNote = instruct.note; switch (instruct.action) { case Actions.ATTACK: Attack(); break; case Actions.MOVE_BACK: MoveTowards(currTarget); break; case Actions.MOVE_FORWARD: MoveTowards(currTarget); break; case Actions.MOVE_ENEMY: MoveTowards(currTarget); break; case Actions.REST: Rest(); break; } }
public virtual void MakeMove(PlayInstructs instrux) { ResetNotes(); Color col = GetComponentInChildren <SpriteRenderer>().color; GetComponentInChildren <SpriteRenderer>().color = new Color(col.r, col.g, col.b, 1); }
public override void MakeMove(PlayInstructs instructs) { ResetNotes(); Color col = sprite1.color; sprite1.color = new Color(col.r, col.g, col.b, 1); col = sprite2.color; sprite2.color = new Color(col.r, col.g, col.b, 1); switch (instructs.action) { case Actions.REST: Rest(); break; case Actions.ATTACK: Attack(); break; default: Rest(); break; } }
void PlayUnit(Puppet u) { if (unitCache.Contains(u.id)) { return; } unitCache.Add(u.id); //float y = u.transform.position.y; //string[] noteArray; PlayInstructs instruct = u.CurrInstruction(); switch (instruct.note) { case ConstFile.Notes.WHOLE: mm.wholeManager.AddInstruct(instruct); break; case ConstFile.Notes.HALF: //Debug.Log("added half"); mm.halfManager.AddInstruct(instruct); break; case ConstFile.Notes.QUARTER: //Debug.Log("added quarter"); mm.quarterManager.AddInstruct(instruct); break; case ConstFile.Notes.EIGHTH: //Debug.Log("added eigth"); mm.eigthManager.AddInstruct(instruct); break; case ConstFile.Notes.SIXTEENTH: mm.sixteenthManager.AddInstruct(instruct); break; } }
public void AddInstruct(PlayInstructs newInstruct) { NoteQue.Add(newInstruct); }