Пример #1
0
        public override bool OnActivation(GameObject c)
        {
            Vector3 hitOnTerrain;

            PositionUtil.ProjectOnTerrainFromPosition(c.transform.position, out hitOnTerrain);
            var areaOfEffect = Instantiate(AoEPrefab, hitOnTerrain, c.transform.rotation);

            areaOfEffect.AffectedTeams = new List <int> {
                c.GetComponent <Team>().TeamId
            };
            return(true);
        }