public void FindCoreShape(GameObject coreShape) { cscScript = coreShape.GetComponent<CoreShapeController>(); if(cscScript != null) { shapeFound = true; } }
public void FindCoreShape(GameObject coreShape) { cscScript = coreShape.GetComponent <CoreShapeController>(); if (cscScript != null) { shapeFound = true; } }
void CorrectColour() { CoreShapeController cscScript = target.GetComponent <CoreShapeController>(); cscScript.ShrinkShape(); DetermineAddedScore(); if (!addedCombo) { cmScript.IncreaseCombo(); addedCombo = true; } correctColor = true; StartCoroutine(DeathSequence()); }