예제 #1
0
 void Start()
 {
     boxcol         = GetComponent <BoxCollider2D>();
     theGM          = FindObjectOfType <GameManager>();
     theRotation    = GetComponentInParent <CornRotation>();
     theSound       = FindObjectOfType <SoundManager>();
     isBorn         = false;
     boxcol.enabled = false;
 }
예제 #2
0
    // Use this for initialization
    void Start()
    {
        theGM       = FindObjectOfType <GameManager>();
        theRotation = GetComponentInChildren <CornRotation>();

        if (gameObject.transform.tag == "Fixed")
        {
            Rotation_Cheack = false;
        }
    }