Exemplo n.º 1
0
 private void Awake()
 {
     m_mesh_sprites = Instantiate(MeshSpritePrefab);
     m_mesh_sprites.transform.position        = Vector3.zero;
     m_winter_mesh_sprites                    = Instantiate(MeshSpritePrefab);
     m_winter_mesh_sprites.transform.position = Vector3.zero;
 }
Exemplo n.º 2
0
    public void Clear()
    {
        Destroy(m_mesh_sprites.gameObject);
        m_mesh_sprites = Instantiate(MeshSpritePrefab, transform);
        m_mesh_sprites.transform.position = new Vector3();

        Destroy(m_winter_mesh_sprites.gameObject);
        m_winter_mesh_sprites = Instantiate(MeshSpritePrefab, transform);
        m_winter_mesh_sprites.transform.position = new Vector3();

        SetSeason(GenerationManager.s_generation_manager?.Season ?? Season.SUMMER);

        foreach (var m in m_mesh_sprites_dupes)
        {
            Destroy(m);
        }

        m_mesh_sprites_dupes.Clear();

        foreach (var m in m_winter_mesh_sprites_dupes)
        {
            Destroy(m);
        }

        m_winter_mesh_sprites_dupes.Clear();
    }
Exemplo n.º 3
0
 private void Awake()
 {
     mesh_sprites = Instantiate(mesh_sprite_prefab);
     mesh_sprites.transform.position        = Vector3.zero;
     winter_mesh_sprites                    = Instantiate(mesh_sprite_prefab);
     winter_mesh_sprites.transform.position = Vector3.zero;
 }