Exemplo n.º 1
0
    public T SpawnElementAt <T>(Vector3 position)
    {
        GameObject go = Object.Instantiate(_element, position, _rotation, _parent);

        go.name = _nameGenerator.GetName();
        return(go.GetComponent <T>());
    }
Exemplo n.º 2
0
        public override string GetName()
        {
            string name = _innerGenerator.GetName();

            name += GetRandomElement(femaleNameEndings);

            return(name);
        }