示例#1
0
 //Methods
 private void Start()
 {
     AimController    = GetComponent <AimController>();
     PMController     = GetComponent <PMController>();
     inputManager     = GetComponent <InputManager>();
     sprintController = GetComponent <SprintController>();
 }
 // Use this for initialization
 void Start()
 {
     pivot        = GameObject.Find("Pivot");
     inputManager = GetComponent <InputManager>();
     passiveMove  = GetComponent <PMController>();
     rigidBody    = GetComponent <Rigidbody>();
     cam          = Camera.main.transform;
     sprintValue  = 20f;
 }
示例#3
0
    void Awake()
    {
        controller = (PMController)UIManager.GetControler(UIName.PM_WIN);

        inputEditbox = transform.Find("Container/Win/InputText").GetComponent <UIInput>();
        _lb          = inputEditbox.GetComponent <UILabel>();
        UIEventListener.Get(transform.Find("Container/Win/CloseButton").gameObject).onClick = OnClickClose;
        UIEventListener.Get(transform.Find("Container/Win/send").gameObject).onClick        = OnClickButton1;
        MsgCallManager.AddCallback(ProtoID.sc_player_chat, OnChatBack);//登录回调
    }
示例#4
0
 private void Awake()
 {
     _charCon = GetComponent <PMController>();
     _god     = GetComponent <CharacterController>();
 }