コード例 #1
0
 protected override void CheckInterface()
 {
     character = this;
     if (null == loader)
     {
         loader = LChatacterRecourceLoader.Instance();
     }
 }
コード例 #2
0
ファイル: CharacterBase.cs プロジェクト: whisperlin/TA2019
 protected virtual void CheckInterface()
 {
     if (null == character)
     {
         Debug.LogError("character not set");
     }
     if (null == loader)
     {
         loader = LChatacterRecourceLoader.Instance();
     }
 }
コード例 #3
0
 void CheckInterface()
 {
     if (null == charactor)
     {
         charactor = this;
     }
     if (null == loader)
     {
         loader = LChatacterRecourceLoader.Instance();
     }
 }
コード例 #4
0
 public static LChatacterRecourceLoader Instance()
 {
     if (null == _instace)
     {
         GameObject g = new GameObject();
         _instace = g.AddComponent <LChatacterRecourceLoader>();
         g.name   = "LChatacterRecourceLoader";
         //g.hideFlags = HideFlags.DontSave;
         //GameObject.DontDestroyOnLoad(g);
     }
     return(_instace);
 }