// Use this for initialization
    void Start()
    {
        tr = GetComponent<Transform>();

        // 옵저버 등록
        WeatherData = WeatherMgr.GetInstance().RetrunThis();
        WeatherData.registerObserver(this);
    }
Example #2
0
    private bool isLocked_NONE = false;       // 데이터 한번만 보내야할때 잠금 역할

    //private SwitchObject switchState;

    void Awake()
    {
        // 옵저버 등록
        WeatherData = WeatherMgr.GetInstance().RetrunThis();
        WeatherData.registerObserver(this);
    }