Esempio n. 1
0
    private void Start()
    {
        target = this.transform.parent;
        if (target == null)
        {
            PlayerControllable = false;
        }

        targetGB = target.GetComponent <GravityBody>();

        zoomLimit = 3 * targetGB.GetRadius() * target.transform.localScale.magnitude;

        if (offset == Vector3.zero)
        {
            offset = 3 * zoomLimit * new Vector3(-1, 0, -1);
        }
    }