Ejemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     //_camera = Camera.main.transform;
     if (_pivot == null)
     {
         Debug.LogError("CameraFree Missing pivot");
         return;
     }
     _cameraPivot = _camera.parent;
     _ragdoll     = _pivot.GetComponentInParent <IBzRagdoll>();
 }
Ejemplo n.º 2
0
        private void Start()
        {
            //if (Camera.main == null)
            //Debug.LogError("Error: no main camera found.");
            //else
            //camTransform = Camera.main.transform;

            _character = GetComponent <IBzThirdPerson>();
            _health    = GetComponent <IBzDamageable>();
            _ragdoll   = GetComponent <IBzRagdoll>();
        }
        private void Start()
        {
            if (Camera.main == null)
            {
                Debug.LogError("Error: no main camera found.");
            }
            else
            {
                _camTransform = Camera.main.transform;
            }

            _character = GetComponent <IBzThirdPerson>();
            _health    = GetComponent <IBzDamageable>();
            _ragdoll   = GetComponent <IBzRagdoll>();
            StartCoroutine(MoveDrunkGuyRandomly());
        }
Ejemplo n.º 4
0
 void Awake()
 {
     _bzRagdoll = GetComponent <IBzRagdoll>();
 }