Пример #1
0
 void Awake()
 {
     _movement = gameObject.AddComponent <Components.PlayerMovement>();
     _relics   = gameObject.AddComponent <Components.RelicManager>();
     _slash    = gameObject.AddComponent <Components.Slash>();
     _health   = gameObject.AddComponent <Components.Health>();
     _health.TotalStuff();
 }
Пример #2
0
 void Awake()
 {
     _movement = gameObject.AddComponent<Components.PlayerMovement> ();
     _relics = gameObject.AddComponent<Components.RelicManager> ();
     _slash = gameObject.AddComponent<Components.Slash> ();
     _health = gameObject.AddComponent<Components.Health> ();
     _death = gameObject.AddComponent<Components.Death> ();
     _health.TotalStuff ();
 }