Init() public method

public Init ( ) : void
return void
Exemplo n.º 1
0
 private void EndGame()
 {
     audioFx.Init();
     GameManager.OpenWinScene();
     Debug.Log("End game");
     //GameManager.m.ShowUI("Menu1_END");
 }
Exemplo n.º 2
0
    public void Init()
    {
        player = PlayerController.Instance;

        lineController = LineController.Instance;

        levelController = LevelController.Instance;

        audioController = AudioController.Instance;

        obj_bases = GameObject.FindWithTag("Objects/bases").transform;

        InstantiateBaseObject(3, Vector2.up * 10);

        PositionBases();

        player.Init();

        lineController.Init();

        if (audioController != null)
        {
            audioController.Init();
        }

        isInit = true;
    }
Exemplo n.º 3
0
    // Use this for initialization
    void Start()
    {
        askForMicrophone();
        setDevice();
        audioController.Init();
        Loger.Init();

        // Debug
        //audioController.InstructionAsync(clip);
        //SavWav.SavWav.Save("/Users/chenxiaoyu/Desktop/newWav", clip);
    }
Exemplo n.º 4
0
    public Player player; //Link for current player.

    //Initializes all controllers.
    public void Init()
    {
        save.Init(this);
        sfx.Init(this);
        gui.Init(this);
        level.Init(this);
        input.Init(this);
        missile.Init(this);
        effect.Init(this);

        DontDestroyOnLoad(gameObject);
    }
Exemplo n.º 5
0
    void Start()
    {
        camCtrl.Init();
        waveCtrl.Init();
        buildingCtrl.Init();
        uiCtrl.Init();
        partCtrl.Init();
        audioCtrl.Init();
        Init();

        //DEBUG
        StartWave();
    }
Exemplo n.º 6
0
    // Start is called before the first frame update
    void Start()
    {
        // specific: enable enemy type child
        for (int i = 0; i < transform.childCount; i++)
        {
            transform.GetChild(i).gameObject.SetActive(false);
        }
        transform.GetChild((int)enemyType).gameObject.SetActive(true);

        agent = GetComponent <NavMeshAgent>();

        audioFx.Init();
    }
Exemplo n.º 7
0
    //

    public static void GameFirstInit()
    {
        if (!isGameFirstInitDone)
        {
            isGameFirstInitDone = true;

            CustomInputManager.Init();
            AudioController.Init();
            VideoSettingsController.Init();

            GameSaveLoadController.LoadOptions();

            if (!GameSaveLoadController.optionsLoadWasOK)
            {
                GameSaveLoadController.SaveOptions();
            }
        }
    }
 void Awake()
 {
     if (instance == null)
     {
         instance              = this;
         settingsData          = LoadSettings();
         QuestTrackerScript    = GetComponent <QuestTracker>();
         AudioControllerScript = GetComponent <AudioController>();
         fadeAnim              = fadeUI.GetComponentInChildren <Animator>();
         fadeImage             = fadeUI.GetComponentInChildren <Image>();
         videoPlayer           = GetComponent <VideoPlayer>();
         AudioControllerScript.Init();
         DontDestroyOnLoad(gameObject);
     }
     else
     {
         Destroy(gameObject);
         return;
     }
 }
Exemplo n.º 9
0
    private void Awake()
    {
        if (instance == null)
        {
            instance = this;
        }
        archievePath = Application.persistentDataPath + "/Archieve";
        MapManager mapManager = (MapManager)FindObjectOfType <MapManager>();

        mapManager.Init();
        collectionUIController = (CollectionUIController)FindObjectOfType <CollectionUIController>();
        collectionUIController.Init();
        Framework.Instance.Initialize();
        AudioController audioController = FindObjectOfType <AudioController>();

        audioController.Init();

        MapManager.instance.LoadMapPieceInfo();
        ResolveArchieve();
        AudioController.instance.PlayHaru();
        Time.timeScale = 0.0f;
    }
Exemplo n.º 10
0
 // Start is called before the first frame update
 void Start()
 {
     audioFx.Init();
     StartCoroutine(StanminaReLoader());
 }