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); }
public void Setup() { ComponentHelper.AssignComponentIfNotExists(gameObject, ref renderer_); ComponentHelper.AssignComponentIfNotExists(gameObject, ref collider_); }
void Awake() { ComponentHelper.AssignComponentIfNotExists(gameObject, ref renderer_); }