public void Awake() { myCollider = GetComponent <Collider2D>(); GetMaxHeight(); if (AttachedPlatform != null) { attachedCollider = AttachedPlatform.GetComponent <Collider2D>(); } }
void Start() { platform = GetComponentInChildren <PlatformEffector2D>(); platformCollider = platform.GetComponent <BoxCollider2D>(); platformCollider.enabled = false; platformTrigger.enabled = false; distJoint = GetComponent <DistanceJoint2D>(); distJoint.enabled = false; distJoint.distance = 0; initialPos = transform.position; controller = GetComponentInParent <ClawController>(); }
void Start() { effector.GetComponent <PlatformEffector2D>(); }