// Use this for initialization void Start () { InAir = false; playerObject = GameObject.FindGameObjectWithTag("Player"); playerController = playerObject.GetComponent<PlayerController>(); canPlayerControl = true; fTeleHeight = 1.0f; onRelocationTile = false; vPlayerOrigin = PlayerObj.transform.position; fMandelaHeight = vPlayerOrigin.y + 10; canTeleport = false; canActivateTele = true; if (isAttached) { canTeleport = true; } fLerpingValue = 0.0f; fRotationSpeed = 4.0f; nState = 0; mandalaMovementController = transform.GetComponentInParent<MandalaMovementController>(); }
void Start() { MandalaObject = GameObject.FindGameObjectWithTag("MandalaMarker"); Mandala = GameObject.FindGameObjectWithTag("Mandala"); MMC = MandalaObject.GetComponent<MandalaMovementController>(); TC = Mandala.GetComponent<TeleportationController>(); MColC = Mandala.GetComponent<MarkerCollisionController>(); }
// Use this for initialization void Start () { onDisableTile = false; teleportationController = gameObject.GetComponent<TeleportationController>(); manMoveController = gameObject.GetComponentInParent<MandalaMovementController>(); distanceToGround = 0; fYvalueRay = 100; vAdjustedOrigin = new Vector3(transform.position.x, fYvalueRay, transform.position.z); }
void Start() { bDisplayEnd = false; canPlayerControl = true; teleportationController = Marker.GetComponentInChildren<TeleportationController>(); mandalaMovementController = Marker.GetComponent<MandalaMovementController>(); anim = GetComponentInChildren<Animator>(); startPosition = transform.position; }