public GameObject spawnTitan(AbnormalType type, float size, Vector3 pos, Quaternion rotation) { GameObject titanPrefab = this.instantiateTitan(pos, rotation); TITAN_SETUP setup = titanPrefab.GetComponent <TITAN_SETUP>(); TITAN titan = titanPrefab.GetComponent <TITAN>(); this.currentTitans++; this.spawnedTitansHashes.Add(titan.GetHashCode()); titan.resetLevel(size); ModMain.instance.getTaskManager().addLateUpdateTask(new CallRPCsTaks(titan, size, (int)type)); return(titanPrefab); }