public void InitChessPos(PersonData personData) { if (personData == null || personBase) { return; } GameObject model = Resources.Load <GameObject>("Prefab/" + GameConfig.HeroModelPath[personData.Id]); GameObject personModel = Instantiate(model); personModel.transform.position = transform.position; personBase = personModel.GetComponent <PersonBase>(); personBase.Init(personData); }