Exemplo n.º 1
0
 public static ResourcesManager GetResourcesManager()
 {
     if (_resourcesManager == null)
     {
         _resourcesManager = Resources.Load("ResourcesManager") as ResourcesManager;
         _resourcesManager.Init();
     }
     return(_resourcesManager);
 }
Exemplo n.º 2
0
        public static ResourcesManager GetResourcesManager()
        {
            //if null then this is the first time we call this
            if (resourcesManager == null)
            {
                //load item from the asset "ResourcesManager" in folder "Resource" folder
                resourcesManager = Resources.Load("ResourcesManager") as ResourcesManager;
                resourcesManager.Init();
            }

            return(resourcesManager);
        }
Exemplo n.º 3
0
        public void Init()
        {
            r_manager.Init();

            mTransform = gameObject.transform;
            SetupAnimator();
            SetupRigidbody();
            controllerCollider = GetComponent <Collider>();
            SetupRagdoll();

            ignoreLayers    = ~(1 << 9);
            ignoreForGround = ~(1 << 9 | 1 << 10);

            a_hook = activeModel.AddComponent <AnimatorHook>();
            a_hook.Init(this);
            Init_WeaponManager();
            SetupCharacter();
        }