예제 #1
0
 private bool DoesColorFit(CoopLogic cl)
 {
     if (cl.color == this.color)
     {
         return(true);
     }
     return(false);
 }
예제 #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);
    }