Пример #1
0
 void Awake()
 {
     ComponentHelper.AssignComponentIfNotExists(gameObject, ref hud);
     ComponentHelper.AssignComponentIfNotExists(gameObject, ref progress);
     ComponentHelper.AssignComponentIfNotExists(gameObject, ref modeManager);
     ComponentHelper.AssignComponentIfNotExists(gameObject, ref result);
     ComponentHelper.AssignComponentIfNotExists(gameObject, ref character);
     ComponentHelper.AssignComponentIfNotExists(gameObject, ref cheat);
 }
Пример #2
0
 public void Setup()
 {
     ComponentHelper.AssignComponentIfNotExists(gameObject, ref renderer_);
     ComponentHelper.AssignComponentIfNotExists(gameObject, ref collider_);
 }
 void Awake()
 {
     ComponentHelper.AssignComponentIfNotExists(gameObject, ref renderer_);
 }