void Start()
        {
            hasMaterial = gameObject.HasComponent <Renderer>();
      #if UNITY_EDITOR
            if (EditorApplication.isPlaying && hasMaterial)
            {
                material = GetComponent <Renderer>().material;
            }
      #else
            if (hasMaterial)
            {
                material = GetComponent <Renderer>().material;
            }
      #endif

            // set parent transform
            hasParentTransform = transform.parent != null && transform.parent.gameObject.HasComponent <FourDimensionTransform>();
            if (hasParentTransform)
            {
                parentTransform = transform.parent.gameObject.GetComponent <FourDimensionTransform>();
            }
        }