예제 #1
0
    // 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>();

        
    }
예제 #2
0
 void Start()
 {
     MandalaObject = GameObject.FindGameObjectWithTag("MandalaMarker");
     Mandala = GameObject.FindGameObjectWithTag("Mandala");
     MMC = MandalaObject.GetComponent<MandalaMovementController>();
     TC = Mandala.GetComponent<TeleportationController>();
     MColC = Mandala.GetComponent<MarkerCollisionController>();
 }
예제 #3
0
 // 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);
 }
예제 #4
0
	void Start()
    {
        bDisplayEnd = false;
        canPlayerControl = true;
        teleportationController = Marker.GetComponentInChildren<TeleportationController>();
		mandalaMovementController = Marker.GetComponent<MandalaMovementController>();
		anim = GetComponentInChildren<Animator>();
        startPosition = transform.position;
    }