Allowed for the text to set a text origin.

This commit is contained in:
Michel Fedde 2021-05-02 14:48:29 +02:00
parent 51f8dfd522
commit 17e76a9dd4
6 changed files with 56 additions and 38 deletions

View file

@ -102,7 +102,7 @@ namespace SM.Base.Scene
addObject(show);
if (item is IScriptable scriptable)
AddScript(scriptable);
addScript(scriptable);
if (item is IFixedScriptable fixedScriptable) _fixedScriptables.Add(fixedScriptable);
}
@ -145,7 +145,6 @@ namespace SM.Base.Scene
/// Adds the script to the collection.
/// </summary>
/// <param name="item"></param>
[Obsolete("Please use Add()")]
public void addScript(IScriptable item)
{
_scriptableObjects.Add(item);