public void CreateToken(String tokenName, String tokenFilePath, Vector2 position, Vector2 scale) { Token token = (Token)TokenScene.Instance(); Tokens.AddChild(token); token.InitializeToken(tokenName, tokenFilePath, position, scale); ClientVariables.InsertedTokens.Add(new TokenReference(tokenName, tokenFilePath)); }
public void CreateTokens(List <TokenReference> tokenReferences) { foreach (TokenReference tokenRef in tokenReferences) { Token token = (Token)TokenScene.Instance(); Tokens.AddChild(token); token.InitializeToken(tokenRef.UniqueName, tokenRef.ImageFile, Vector2.Zero, Vector2.Zero); ClientVariables.InsertedTokens.Add(tokenRef); } }