private bool DoesColorFit(CoopLogic cl) { if (cl.color == this.color) { return(true); } return(false); }
private bool CheckCoopMatchingAndDestroy(GameObject coop) { CoopLogic cl = coop.GetComponent <CoopLogic>(); if (this.DoesColorFit(cl)) { cl.Wobble(); ChickenSortEvents.CaptureChicken(this.gameObject); return(true); } return(false); }