Ejemplo n.º 1
0
 private bool DoesColorFit(CoopLogic cl)
 {
     if (cl.color == this.color)
     {
         return(true);
     }
     return(false);
 }
Ejemplo n.º 2
0
    private bool CheckCoopMatchingAndDestroy(GameObject coop)
    {
        CoopLogic cl = coop.GetComponent <CoopLogic>();

        if (this.DoesColorFit(cl))
        {
            cl.Wobble();
            ChickenSortEvents.CaptureChicken(this.gameObject);
            return(true);
        }
        return(false);
    }