コード例 #1
0
    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;
    }
コード例 #2
0
ファイル: openChest.cs プロジェクト: GRGD/InvisiblePetsTest2
 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>();
 }
コード例 #3
0
ファイル: fairyHead.cs プロジェクト: GRGD/InvisiblePetsTest2
 void Start()
 {
     fairyAnim = GameObject.Find("pet").GetComponent<petAnimation>();
 }
コード例 #4
0
ファイル: fairyKick.cs プロジェクト: GRGD/InvisiblePetsTest2
 void Start()
 {
     fairyAnim = GameObject.Find("pet").GetComponent<petAnimation>();
     ochest = GameObject.Find("active_chest").GetComponent<openChest>();
 }
コード例 #5
0
 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>();
 }
コード例 #6
0
 void Start()
 {
     controller = GameObject.Find("pet").GetComponent<CharacterController>();
     petAnim = GameObject.Find ("pet").GetComponent<petAnimation>();
 }
コード例 #7
0
    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();
    }