private void Awake()
        {
            GameObject parent = this.transform.parent.gameObject;

            ICPControllerOfParent = parent.GetComponent <ICPController>();
            Debug.Assert(ICPControllerOfParent != null, "The parent gameobject of the object that has the " + this.name + " is expected to have an ICPController.");

            Normal.MagnitudeFactor = normalScale;
        }
Example #2
0
        private void Awake()
        {
            if (CLI.Instance.CLIModeActive)
            {
                Destroy(this);
            }

            GameObject parent = this.transform.parent.gameObject;

            parentsICPController = parent.GetComponent <ICPController>();
            Debug.Assert(parentsICPController != null, "The parent gameobject of the object that has the " + this.name + " is expected to have an ICPController.");
        }