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; }
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() { fairyAnim = GameObject.Find("pet").GetComponent<petAnimation>(); }
void Start() { fairyAnim = GameObject.Find("pet").GetComponent<petAnimation>(); ochest = GameObject.Find("active_chest").GetComponent<openChest>(); }
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>(); }
void Start() { controller = GameObject.Find("pet").GetComponent<CharacterController>(); petAnim = GameObject.Find ("pet").GetComponent<petAnimation>(); }
void Start() { //_camera = GameObject.Find("Main Camera").GetComponent<Camera>(); _camera = Camera.main.GetComponent<Camera>(); gameObject.transform.position = _camera.ViewportToWorldPoint(new Vector3(.93f, .1f, distanceFromCamera)); fairyAnim = GameObject.Find("pet").GetComponent<petAnimation>(); InitHealth(); }