Beispiel #1
0
 public void SetMainSignal(bool set)
 {
     if (signal == null)
     {
         signal = Zoo.Instance.getObject("GUI/range_sphere", true).GetComponent <Range_Indicator>();
     }
     signal.Set(set, false);
 }
Beispiel #2
0
    void InitSignal(Range_Indicator my_signal, Island_Button island, float _size, bool main)
    {
        if (main && my_signal == null)
        {
            my_signal = Zoo.Instance.getObject("GUI/range_sphere", true).GetComponent <Range_Indicator>();
            signal    = my_signal;
        }
        my_signal.gameObject.SetActive(true); //soft clear removes signal

        my_signal.gameObject.transform.SetParent(island.transform);
        my_signal.gameObject.transform.position = island.transform.position;
        SetSignalSize(my_signal, _size);


        my_signal.Set(true, island.island_type == IslandType.Temporary && island.my_toy != null);
    }