Beispiel #1
0
    // Update is called once per frame
    void Update()
    {
        if (KeepTransform != null && _rectTransform != null)
        {
            _rectTransform.position = CamControl.RTSCamera().WorldToScreenPoint(KeepTransform.position);
        }

        if (MyBuilding == null || MyBuilding.PositionFixed)
        {
            Destroy(gameObject);
        }
    }