void Start() { boxcol = GetComponent <BoxCollider2D>(); theGM = FindObjectOfType <GameManager>(); theRotation = GetComponentInParent <CornRotation>(); theSound = FindObjectOfType <SoundManager>(); isBorn = false; boxcol.enabled = false; }
// Use this for initialization void Start() { theGM = FindObjectOfType <GameManager>(); theRotation = GetComponentInChildren <CornRotation>(); if (gameObject.transform.tag == "Fixed") { Rotation_Cheack = false; } }