Inheritance: MonoBehaviour
Beispiel #1
0
 private void Start()
 {
     this.canvas.gameObject.SetActive(false);
     this.settings.gameObject.SetActive(false);
     this.controls.gameObject.SetActive(false);
     this.levelManager = GameObject.Find("levelManager").GetComponent <loadOnClick>();
     this.camera       = GameObject.Find("Main Camera").GetComponent <mouseLook>();
 }
    private void Awake()
    {
        equipment           = GetComponent <PlayerEquipment>();
        mysql               = FindObjectOfType <Mysql>();
        animationController = GetComponentInChildren <CharacterAnimationController>();
        mouseLook           = GetComponent <mouseLook>();

        respawnUpdateTime = Time.time;
    }
Beispiel #3
0
    void Start()
    {
        m_characterMove = GetComponentInParent <characterMove>();
        m_Rigidbody     = transform.parent.GetComponent <Rigidbody>();
        m_Camera        = GetComponent <Camera>();

        mouseLook = new mouseLook(m_Rigidbody, transform, m_characterMove);
        headBob   = new headBob(m_Camera, transform);
    }
Beispiel #4
0
 // Use this for initialization
 void Awake()
 {
     inputScript     = gameObject.GetComponent <Drone>();
     mouseLookScript = gameObject.GetComponent <mouseLook>();
     cameraObject    = transform.GetChild(0).gameObject;
 }