blob: c51d56532a421e216b8d3da0e3f2aba6bc1e7dc9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using WK.Data;
namespace WK
{
public class CharacterBuilder
{
protected GameObject m_Root;
protected CharacterMetadata m_Metadata;
public GameObject Build(CharacterMetadata metadata)
{
m_Metadata = metadata;
m_Root = BuildPhaseRootGameObject();
return m_Root;
}
protected virtual GameObject BuildPhaseRootGameObject()
{
GameObject go = new GameObject();
return go;
}
protected virtual PlayerController BuildPhaseController()
{
return null;
}
protected virtual void BuildPhaseSpriteRenderer()
{
}
}
}
|