Пример #1
0
        public void Init(Client_Engine en)
        {
            e      = en;
            _Model = Client_PlayerModelData.BuildPlayerModel(this);
            _Model.transform.SetParent(transform, false);

            _Animator       = _Model.GetComponent <Animator>();
            _FeetIK         = _Model.AddComponent <FootIKSmooth>();
            _FeetIK.anim    = _Animator;
            _FeetIK.RayMask = groundLayer;

            Ready = true;
        }
Пример #2
0
        // Use this for initialization
        void Start()
        {
            Client_PlayerModelData.Init();


            Input   = new Client_InputManager();
            Network = new Client_NetworkManager();
            Scene   = new Client_SceneManager();
            World   = new Client_WorldManager();
            UI      = new Client_UIManager();
            Combat  = new Client_CombatManager();

            Input.init(this);
            Network.init(this);
            Scene.init(this);
            World.init(this);
            UI.init(this);
            Combat.init(this);

            Skills.initImages();
            Skills.initSkills(this);

            Client_PlayerModelData.Init();

            SkillEffects.initEffects();
            NPCPrefabs.initNPCs();

            /*discordPresence = new Discord.Discord(566163066631487491, (UInt64)Discord.CreateFlags.Default);
             *
             * var activity = new Discord.Activity
             * {
             *  State = "Main Menu",
             *  Details = "Game Development",
             *  Assets =
             * {
             *  LargeImage = "unity_01",
             *  LargeText = "Game in Development",
             * },
             *  Instance = true,
             * };
             *
             * discordPresence.GetActivityManager().UpdateActivity(activity, result =>
             * {
             * Debug.Log("Update Activity - " + result);
             * });*/
        }