Ejemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     groundCheck = transform.Find("GroundCheck");
     skillSystem = gameObject.AddComponent <PlayerSkillSystem>();
     quality     = new PlayerQuality();
     gt          = new GroundTrigger(this);
 }
Ejemplo n.º 2
0
 private void Awake()
 {
     //跟一些游戏中的组件绑定
     //技能相关发射器绑定
     direction = new Vector2(-1, 0);
     //技能系统绑定
     skillSystem = gameObject.AddComponent <PlayerSkillSystem>();
     //封装一些角色数值的东西
     quality = new PlayerQuality();
 }