Example #1
0
    ///// public bool value1 = Input.GetKey("up");
    // public bool value2 = Input.GetKey("down");
    // Use this for initialization
    void Start()
    {
        _gamemanager = GameObject.Find("GameManager").GetComponent <GameManager>();
        _uimanager   = GameObject.Find("Canvas").GetComponent <UImanager>();
        _uimanager.UpdateLives(life);

        _spawnmanager = GameObject.Find("Spawn_Manager").GetComponent <Spawn_Manager>();
        _spawnmanager.startSpawn();
        audio = GetComponent <AudioSource>();
    }