/// <summary> /// Initializes the world box, setting the localizer and the field size /// </summary> /// <param name="localizer">The used filter method</param> /// <param name="fieldSize">The size of the game field</param> public void Init(IUserLocalizer localizer, FieldSize fieldSize) { this.localizer = localizer; this.fieldSize = fieldSize; this.InitPlanes(); this.metaFrame = GameObject.Find("MetaWorld/MetaFrame").transform; }
/// <summary> /// Create the ground and water plane /// </summary> /// <param name="localizer">Localizer filter used for position tracking</param> /// <param name="fieldSize">Size of the field</param> private void InitWorldBox(IUserLocalizer localizer, FieldSize fieldSize) { GameObject worldBox = new GameObject("WorldBox"); worldBox.AddComponent <WorldBox>().Init(localizer, fieldSize); }