/// <summary>
    /// Use this for initialization.
    /// </summary>
    void Start()
    {
        //followXForm = GameObject.FindWithTag("Player").transform;
        follow = followXForm.parent.GetComponent <SC_CharacterController>();
        //parentRig = this.transform.root;

        curLookDir = followXForm.forward;
        lookDir    = followXForm.forward;

        //Position and parent a GameObject where first person view should be
        firstPersonCamPos = new CameraPosition
                            (
            "First Person Camera",
            new Vector3(0.0f, 1.6f, 0.2f),
            new GameObject().transform,
            follow.transform
                            );
    }
Exemplo n.º 2
0
 public void Start()
 {
     player = GameObject.FindGameObjectWithTag("Player").GetComponent <SC_CharacterController>();
 }
Exemplo n.º 3
0
 // Use this for initialization
 void Start()
 {
     waterSpray.SetActive(false);
     player = GameObject.FindGameObjectWithTag("Player").GetComponent <SC_CharacterController>();
 }