// Use this for initialization
    void Start () {
        playerObject = GameObject.FindGameObjectWithTag("Player");
        Mandala = GameObject.FindGameObjectWithTag("Mandala");
        //playerController = playerObject.GetComponent<PlayerController>();
        teleportationController = Mandala.GetComponent<TeleportationController>();

        canTeleport = false;
        canPlayerControl = true;

        if (isAttached)
        {
            canTeleport = true;
        }
        fLerpingValue = 0.0f;


        if (canTeleport)
        {
            AddMandalaRadius(fRadius);
           
        }
        fMandelaHeight = transform.position.y;
        nMovingState = 0;
        fMovingSpeed = 400f;
        bReached = false;

    }
Beispiel #2
0
 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);
 }
Beispiel #4
0
	void Start()
    {
        bDisplayEnd = false;
        canPlayerControl = true;
        teleportationController = Marker.GetComponentInChildren<TeleportationController>();
		mandalaMovementController = Marker.GetComponent<MandalaMovementController>();
		anim = GetComponentInChildren<Animator>();
        startPosition = transform.position;
    }
Beispiel #5
0
    // Use this for initialization
    void Start()  {
        moveInterval = 3;
        chaseTime = 8;
        chaseVelocity = 7.5f;
        chaseProximity = 12;
        //chaseLimitDist = 10;

        mandala = GameObject.Find("Mandala");
        if (mandala != null) {
            tc = mandala.GetComponent<TeleportationController>();
        }

        player = GameObject.FindWithTag("Player").GetComponent<Transform>();
        monster = GetComponent<NavMeshAgent>();
        monsterTr = GetComponent<Transform>();
        startPos = monsterTr.position;

        attacking = false;
        moving = false;
        returning = false;
    }
Beispiel #6
0
    // Use this for initialization
    void Start () {

        //Initialize monster parameters.
        moveInterval = 3;
        chaseTime = 8;
        chaseVelocity = 7.5f;
        chaseProximity = 8;
        //chaseLimitDist = 10;
        teleportDisableTime = 4;

        //Get Mandala information.
        mandala =  GameObject.Find("Mandala");
        if (mandala != null) {
            tc = mandala.GetComponent<TeleportationController>();
        }
        monster = GetComponent<NavMeshAgent>();
        monsterTr = GetComponent<Transform>();
        startPos = monsterTr.position;

        attacking = false;
        moving  = false;
        returning = false;
    }