// Use this for initialization void Start() { try { text = GameObject.Find("Text").GetComponent <Text>(); animator = Unitychan.GetComponent <Animator>(); rb = Unitychan.GetComponent <Rigidbody>(); Enemy0_scripts = Enemy0.GetComponent <Animation1>(); Enemy1_scripts = Enemy1.GetComponent <Animation5>(); Light_scripts = LightManager.GetComponent <Animation2>(); Sword_scripts = SwordManager.GetComponent <Animation3>(); Player_scripts = Player.GetComponent <Animation4>(); Camera_scripts = Camera.GetComponent <Animation4>(); UnityChan_scripts = Unitychan.GetComponent <Opening_UnityChan>(); EnemyMaster_scripts = EnemyMaster.GetComponent <EnemyGenerator>(); opening = true; countdown = false; playing = false; gameover = false; clear = false; } catch (Exception e) { Debug.Log("exception"); } }