示例#1
0
    // Use this for initialization
    void Start()
    {
        if (GameObject.FindGameObjectWithTag("Ball") != null)
        {
            lookatBall = GameObject.FindGameObjectWithTag("Ball").transform;
        }

        cMM = transform.GetComponent <CameraModeMedium>();
    }
示例#2
0
 private void RPC_GetPlayerComponents()
 {
     BH  = ChildPlayer.GetComponent <BallHandling>();
     BS  = ChildPlayer.GetComponent <BallSteal>();
     HBS = ChildPlayer.GetComponent <hoverBoardScript>();
     PC  = ChildPlayer.GetComponent <PlayerColor>();
     ChildPlayer.transform.SetParent(this.transform);
     cRotScript = ChildPlayer.GetComponentInChildren <CameraRotation>();
     cmm        = ChildPlayer.GetComponentInChildren <CameraModeMedium>();
 }