示例#1
0
        public static void Initialize()
        {
            keyDic = Addressables.ResourceLocators[0].Keys.ToDictionary(key => key.ToString(), key => true);

            BothAnimManager.Init();
            RoleUpgradeDataAsset.GetAsset();
            ItemManager.Init1();

            WalkOnGroundEffectController.LoadRes();
        }
示例#2
0
        // Use this for initialization
        public override void Start()
        {
            base.Start();

            // 初始化角色 add by TangJian 2019/4/17 17:19
            Init();

            // 初始化增益 add by TangJian 2018/12/8 1:30
            InitBuff();

            // 角色控制器 add by TangJian 2017/07/13 23:28:59
            _characterController = GetComponent <CharacterController>();

            // 初始化动画状态机 add by TangJian 2018/12/8 14:39
            InitAnimator();



            // 设置角色方向 add by TangJian 2018/12/8 14:39
            SetDirection(this.direction);


            InitValueMonitorPool();

            initDamageTarget();
            // 初始化角色状态机 add by TangJian 2018/05/08 17:32:12
            InitFSM();



            // 初始化攻击受击代理 add by TangJian 2019/5/10 16:23
            _hitAndHurtDelegate = new HitAndHurtController(this);

            // 初始化踩地面特效控制器
            _walkOnGroundEffectDelegate = new WalkOnGroundEffectController();

            InitHurtMode();
        }