Exemplo n.º 1
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());
        }