protected override void CheckInterface() { character = this; if (null == loader) { loader = LChatacterRecourceLoader.Instance(); } }
protected virtual void CheckInterface() { if (null == character) { Debug.LogError("character not set"); } if (null == loader) { loader = LChatacterRecourceLoader.Instance(); } }
void CheckInterface() { if (null == charactor) { charactor = this; } if (null == loader) { loader = LChatacterRecourceLoader.Instance(); } }
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); }