Example #1
0
File: Card.cs Project: gbdb71/ld40
    // Use this for initialization
    void Start()
    {
        originalScale = transform.localScale;
        coll          = GetComponent <Collider2D> ();

        if (isMatrix)
        {
            blockMatrix = GetComponentInChildren <BlockMatrix> ();

            if (Manager.Instance.StarterMatrix())
            {
                blockMatrix.FillStarter();
            }
            else
            {
                blockMatrix.FillNormal();
            }
        }
        else
        {
            operation = Random.Range(0, Manager.Instance.OperatorMax());
            operationSprite.sprite = Manager.Instance.operationSprites [operation];

            if (operation == 2)
            {
                ProgressManager.Instance.MultiTutorial();
            }
        }

        shadowScale = shadow.localScale;

//		sprite.color = new Color (Random.Range (0.5f, 1f), Random.Range (0.5f, 1f), Random.Range (0.5f, 1f));
    }