コード例 #1
0
ファイル: InputManager.cs プロジェクト: JackRFuller/Borders
    public void FindCoreShape(GameObject coreShape)
    {
        cscScript = coreShape.GetComponent<CoreShapeController>();

        if(cscScript != null)
        {
            shapeFound = true;
        }
    }
コード例 #2
0
    public void FindCoreShape(GameObject coreShape)
    {
        cscScript = coreShape.GetComponent <CoreShapeController>();

        if (cscScript != null)
        {
            shapeFound = true;
        }
    }
コード例 #3
0
    void CorrectColour()
    {
        CoreShapeController cscScript = target.GetComponent <CoreShapeController>();

        cscScript.ShrinkShape();
        DetermineAddedScore();

        if (!addedCombo)
        {
            cmScript.IncreaseCombo();
            addedCombo = true;
        }
        correctColor = true;

        StartCoroutine(DeathSequence());
    }