/// <summary> /// Fired upon GameObject creation. /// </summary> public void OnCreate(GameObject obj) { if (obj != null && obj.IsValid) { switch (obj.Name) { case "Taliyah_Base_Q_aoe.troy": case "Taliyah_Base_Q_aoe_river.troy": WorkedGrounds.Add(obj.NetworkId, obj.Position); break; case "Taliyah_Base_E_Mines.troy": MineField.Add(obj.NetworkId, obj.Position); break; } } }
/// <summary> /// Fired upon GameObject creation. /// </summary> public void OnCreate(GameObjectCreateEventArgs args) { var obj = args.Sender; if (obj.IsValid) { switch (obj.Name) { case "Taliyah_Base_Q_aoe": case "Taliyah_Base_Q_aoe_river": WorkedGrounds.Add(obj, obj.Position); break; case "Taliyah_Base_E_Mines": MineField.Add(obj, obj.Position); break; } } }