コード例 #1
0
    // bool to check if camera is looking at target
    //x private bool lookAt = true;

    private void Start()
    {
        fPSChange = player.GetComponent <FPSChange>();

        checkEntityAccess = GameObject.Find("GameManager").GetComponent <CheckEntityAccess>();

        xRotate = GameObject.Find("Player").transform.eulerAngles.y;
    }
コード例 #2
0
    // Use this for initialization
    void Start()
    {
        gunPickedUp.SetActive(false);

        fPSChange = player.GetComponent <FPSChange>();
    }
コード例 #3
0
 // Use this for initialization
 void Start()
 {
     // get player fpschange reference
     fPSChange = this.GetComponent <FPSChange>();
 }