public void GeneratePerson() { Inn t = target as Inn; if (!t) { Debug.LogError("Invalid building command"); return; } Person worker = t.GetCommandReceiver() as Person; worker.Work = t; }
public void GeneratePerson() { Inn t = target as Inn; if (!t) { Debug.LogError("Invalid building command"); return; } Person worker = t.GetCommandReceiver() as Person; worker.Work = t; }