Ejemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        poBoxKey              = null;
        isTangible            = false;
        clonePosition         = GetComponentInChildren <ClonePosition>().transform.position;
        this.outlineRenderers = new List <LineRenderer> ();

        fractionLabel.Disable();

        //		playerData = GameObject.FindGameObjectWithTag ("PlayerData").GetComponent<PlayerData> ();
        //		FractionsReference.Instance ().UpdateValidDenominators ();

        if (validDenominators == null)
        {
            Debug.LogError("Start Error");
        }


        Debug.Log("PARTITIONABLE start");
    }
Ejemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        poBoxKey            = null;
        partitionController = GameObject.FindGameObjectWithTag("GameController").GetComponent <PartitionController> ();
//		pauseController = GameObject.FindGameObjectWithTag ("GameController").GetComponent<PauseController> ();
        clonePosition = new Vector2(
            this.gameObject.transform.position.x,
            this.gameObject.transform.position.y + CLONE_DISTANCE_Y);


        fractionLabel.Disable();

//		playerData = GameObject.FindGameObjectWithTag ("PlayerData").GetComponent<PlayerData> ();
//		FractionsReference.Instance ().UpdateValidDenominators ();

        if (validDenominators == null)
        {
            Debug.Log("<color=red>Start Error</color>");
        }
    }