void Start()
    {
        positionDefault = transform.position;

        ballThrower = GameObject.Find("Main Camera").GetComponent<ballThrower>();
        fairyAnim = GameObject.Find("pet").GetComponent<petAnimation>();
        fairyLook = GameObject.Find("pet").GetComponent<petLookAt>();
        cam = GameObject.Find("Main Camera").transform;
    }
Exemple #2
0
 void Start()
 {
     _anim = gameObject.GetComponent<Animation>();
     _hoverhighlight = gameObject.GetComponent<objectHoverHighlight>();
     //		_particles = gameObject.GetComponentInChildren<ParticleSystem>();
     //		_objectget = gameObject.GetComponentInChildren<chestObjectGet>();
     petMov = GameObject.Find("pet").GetComponent<petMovement>();
     petLook = GameObject.Find("pet").GetComponent<petLookAt>();
     petAnim = GameObject.Find("pet").GetComponent<petAnimation>();
 }
    void Start()
    {
        _objectSpawn = gameObject.transform.Find("mesh_active_chest_bottom/objectSpawn");
        _camCutscene = cam.GetComponent<cutsceneMoveCamera>();
        cameraLocation = gameObject.transform.Find ("cameraLocation");
        fairyMov = GameObject.Find("pet").GetComponent<petMovement>();
        fairyLook = GameObject.Find("pet").GetComponent<petLookAt>();

        //get original position and new position for Vector3 Lerp
        _objectSpawnOrigPos = _objectSpawn.position;
        _objectspawnNewPos = _objectSpawnOrigPos + new Vector3(0, 4, 0);
    }
    void Start()
    {
        //Check for platfrom
        if(Application.platform == RuntimePlatform.WindowsPlayer || Application.platform == RuntimePlatform.WindowsEditor)
            _mobile = false;
        else
            _mobile = true;

        fairyLook = GameObject.Find("pet").GetComponent<petLookAt>();
        fairy = GameObject.Find("pet");

        throwingPower = 1f;
        playerHasBall = true;
        characterHasBall = false;
        fairyStartPos = fairy.transform.position;
    }
 void Start()
 {
     _rigids = gameObject.GetComponentsInChildren<Rigidbody>();
      _arrayNext = _rigids.Length - 1;
     _fruitingManager = GameObject.Find("fruitingManager").GetComponent<fruitingManager>();
     _health = GameObject.Find("hud_health").GetComponent<characterHealthHUD>();
     _hudVisibility = GameObject.Find("HUD Camera").GetComponent<hudVisibilityManager>();
     fairyAnim = GameObject.Find("pet").GetComponent<petAnimation>();
     fairyLook = GameObject.Find("pet").GetComponent<petLookAt>();
 }