Пример #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>();
 }