-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
添加框架主体与若干manager
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
//=================================================== | ||
//备 注:替换代码注释 | ||
//=================================================== | ||
using UnityEngine; | ||
using System.Collections; | ||
using System.IO; | ||
using System; | ||
using UnityEditor; | ||
|
||
/// <summary> | ||
/// | ||
/// </summary> | ||
public class ScriptCreatInit : UnityEditor.AssetModificationProcessor | ||
{ | ||
private static void OnWillCreateAsset(string path) | ||
{ | ||
path = path.Replace(".meta",""); | ||
if (path.EndsWith(".cs")) | ||
{ | ||
string strContent = File.ReadAllText(path); | ||
strContent = strContent.Replace("#AuthorName#", "TamLee").Replace("#CreateTime#", DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")); | ||
File.WriteAllText(path, strContent); | ||
AssetDatabase.Refresh(); | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
|
||
namespace TamLee | ||
{ | ||
public class DataComponent : TamLeeBaseComponent | ||
{ | ||
public override void Shutdown() | ||
{ | ||
} | ||
|
||
// Start is called before the first frame update | ||
void Start() | ||
{ | ||
|
||
} | ||
|
||
// Update is called once per frame | ||
void Update() | ||
{ | ||
|
||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
|
||
namespace TamLee | ||
{ | ||
public class DataTableComponent : TamLeeBaseComponent | ||
{ | ||
|
||
public override void Shutdown() | ||
{ | ||
} | ||
|
||
// Start is called before the first frame update | ||
void Start() | ||
{ | ||
|
||
} | ||
|
||
// Update is called once per frame | ||
void Update() | ||
{ | ||
|
||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
|
||
namespace TamLee | ||
{ | ||
public class DownloadComponent : TamLeeBaseComponent | ||
{ | ||
public override void Shutdown() | ||
{ | ||
} | ||
|
||
// Start is called before the first frame update | ||
void Start() | ||
{ | ||
|
||
} | ||
|
||
// Update is called once per frame | ||
void Update() | ||
{ | ||
|
||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
|
||
namespace TamLee | ||
{ | ||
public class EventComponent : TamLeeBaseComponent | ||
{ | ||
|
||
private EventManager m_EventManager; | ||
public SocketEvent SocketEvent; | ||
public CommonEvent CommonEvent; | ||
|
||
protected override void OnAwake() | ||
{ | ||
base.OnAwake(); | ||
m_EventManager = new EventManager(); | ||
SocketEvent = m_EventManager.SocketEvent; | ||
CommonEvent = m_EventManager.CommonEvent; | ||
} | ||
|
||
public override void Shutdown() | ||
{ | ||
m_EventManager.Dispose(); | ||
m_EventManager = null; | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
|
||
namespace TamLee | ||
{ | ||
public class FsmComponent : TamLeeBaseComponent | ||
{ | ||
public override void Shutdown() | ||
{ | ||
} | ||
|
||
// Start is called before the first frame update | ||
void Start() | ||
{ | ||
|
||
} | ||
|
||
// Update is called once per frame | ||
void Update() | ||
{ | ||
|
||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
|
||
namespace TamLee | ||
{ | ||
public class GameObjComponent : TamLeeBaseComponent | ||
{ | ||
public override void Shutdown() | ||
{ | ||
} | ||
|
||
// Start is called before the first frame update | ||
void Start() | ||
{ | ||
|
||
} | ||
|
||
// Update is called once per frame | ||
void Update() | ||
{ | ||
|
||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
|
||
namespace TamLee | ||
{ | ||
public class HttpComponent : TamLeeBaseComponent | ||
{ | ||
public override void Shutdown() | ||
{ | ||
} | ||
|
||
// Start is called before the first frame update | ||
void Start() | ||
{ | ||
|
||
} | ||
|
||
// Update is called once per frame | ||
void Update() | ||
{ | ||
|
||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
|
||
namespace TamLee | ||
{ | ||
public class LocalizationComponent : TamLeeBaseComponent | ||
{ | ||
public override void Shutdown() | ||
{ | ||
} | ||
|
||
// Start is called before the first frame update | ||
void Start() | ||
{ | ||
|
||
} | ||
|
||
// Update is called once per frame | ||
void Update() | ||
{ | ||
|
||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
|
||
namespace TamLee | ||
{ | ||
public class PoolComponent : TamLeeBaseComponent | ||
{ | ||
public override void Shutdown() | ||
{ | ||
} | ||
|
||
// Start is called before the first frame update | ||
void Start() | ||
{ | ||
|
||
} | ||
|
||
// Update is called once per frame | ||
void Update() | ||
{ | ||
|
||
} | ||
} | ||
} |