Ejemplo n.º 1
0
            public static bool Prefix(Tower __instance, ref Model modelToUse)
            {
                if (prevEffect == effects[20] && voteTimer < 40)
                {
                    modelToUse = TowerUtils.GetTower(TowerType.CaveMonkey);
                }

                if (prevEffect == effects[21] && voteTimer < 40)
                {
                    modelToUse = TowerUtils.GetTower(TowerType.SentryCold);
                }

                if (prevEffect == effects[22] && voteTimer < 20)
                {
                    modelToUse = TowerUtils.GetTower(TowerType.EnergisingTotem);
                }

                if (prevEffect == effects[23] && voteTimer < 20)
                {
                    modelToUse = TowerUtils.GetTower(TowerType.PortableLake);
                }

                //if (prevEffect == effects[27] && voteTimer < 20)
                //    modelToUse = TowerUtils.GetTower(TowerType.Etienne);



                return(true);
            }
Ejemplo n.º 2
0
 public virtual void AddOrbitalGun()
 {
     if (OrbitalGuns.Count < Data.orbitalData.maxNumberOfOrbitals)
     {
         TowerUtils.AddOrbitalGun(this, Rotator, Data.orbitalData.orbitalGunPrefab);
     }
 }
Ejemplo n.º 3
0
 public static void TowerInitialiseEvent(InitialiseEvent.Pre e)
 {
     e.model = TowerUtils.GetTower(DefaultTowerIds.SuperMonkey);
 }
Ejemplo n.º 4
0
 public Vector2[] OrbitalDirections(int numOfOrbitals)
 {
     return(TowerUtils.GetDirections(numOfOrbitals));
 }