Beispiel #1
0
        public static VMDCameraMgr Install(GameObject root)
        {
            VMDCameraMgr vmdcameraMgr = root.GetComponent <VMDCameraMgr>();

            if (vmdcameraMgr == null)
            {
                vmdcameraMgr = root.AddComponent <VMDCameraMgr>();
                vmdcameraMgr.Init();
                VMDCameraMgr._instance = vmdcameraMgr;
            }
            return(vmdcameraMgr);
        }
 public static VMDAnimationMgr Install(GameObject container)
 {
     if (VMDAnimationMgr._instance == null)
     {
         VMDAnimationMgr._instance = container.AddComponent <VMDAnimationMgr>();
         GameObject gameObject = new GameObject("CameraMgr");
         gameObject.transform.parent         = container.transform;
         gameObject.transform.localPosition  = Vector3.zero;
         gameObject.transform.localRotation  = Quaternion.identity;
         VMDAnimationMgr._instance.CameraMgr = VMDCameraMgr.Install(gameObject);
     }
     return(VMDAnimationMgr._instance);
 }