Ejemplo n.º 1
0
    public async Task LoadObjectSprites()
    {
        ObjectSprites = await CreateAddressablesLoader.CreateAsset <AllObjects>(OBJECT_SPRITES);

        Object = await CreateAddressablesLoader.CreateAsset <GameObject>(OBJECT_NAME);

        GameObject gameObject = await CreateAddressablesLoader.CreateGameObject(NEXT_ROUND_PARTICLE);

        NextRoundParticle = gameObject.GetComponentInChildren <ParticleSystem>();
        NextRoundParticle.Stop();
    }
Ejemplo n.º 2
0
    public async Task <HorizontalView> CreateHorizontalView(Transform parent)
    {
        GameObject gameObject = await CreateAddressablesLoader.CreateGameObject(HORIZONTAL_VIEW_NAME, parent);

        return(gameObject.GetComponent <HorizontalView>());
    }
Ejemplo n.º 3
0
 public async Task <GameObject> CreatePlayStateView()
 {
     return(await CreateAddressablesLoader.CreateGameObject(PLAY_STATE_VIEW_NAME));;
 }
Ejemplo n.º 4
0
    public async Task <RoundView> CreateRoundView(Transform parent)
    {
        GameObject gameObject = await CreateAddressablesLoader.CreateGameObject(ROUND_VIEW_NAME, parent);

        return(gameObject.GetComponent <RoundView>());
    }
Ejemplo n.º 5
0
    public async Task <GameOverView> CreateGameOverView(Transform parent)
    {
        GameObject gameObject = await CreateAddressablesLoader.CreateGameObject(GAME_OVER_VIEW_NAME, parent);

        return(gameObject.GetComponent <GameOverView>());
    }
    public async Task <DestinationObjectView> CreateDestinationObjectView(Transform parent)
    {
        GameObject gameObject = await CreateAddressablesLoader.CreateGameObject(DESTINATION_VIEW_NAME, parent);

        return(gameObject.GetComponent <DestinationObjectView>());
    }