void Start() { rotObj = GameObject.Find("RotCamera"); sun = GameObject.Find("Sun2"); sunRay = sun.GetComponent <SunRay>(); light = GameObject.Find("Spotlight"); lightComp = light.GetComponent <Light>(); lightTxt = GameObject.Find("LightText"); lightText = lightTxt.GetComponent <Text>(); }
public Phoenix(Unit9 owner, MultiSleeper abilitySleeper, Sleeper orbwalkSleeper, ControllableUnitMenu menu) : base(owner, abilitySleeper, orbwalkSleeper, menu) { this.ComboAbilities = new Dictionary <AbilityId, Func <ActiveAbility, UsableAbility> > { { AbilityId.phoenix_icarus_dive, x => this.dive = new IcarusDive(x) }, { AbilityId.phoenix_launch_fire_spirit, x => this.spirits = new FireSpirits(x) }, { AbilityId.phoenix_sun_ray, x => this.ray = new SunRay(x) }, { AbilityId.phoenix_supernova, x => this.nova = new Supernova(x) }, { AbilityId.item_veil_of_discord, x => this.veil = new DebuffAbility(x) }, { AbilityId.item_shivas_guard, x => this.shiva = new ShivasGuard(x) }, { AbilityId.item_rod_of_atos, x => this.atos = new DisableAbility(x) }, { AbilityId.item_spirit_vessel, x => this.vessel = new DebuffAbility(x) }, { AbilityId.item_urn_of_shadows, x => this.urn = new DebuffAbility(x) }, { AbilityId.item_sheepstick, x => this.hex = new DisableAbility(x) }, { AbilityId.item_heavens_halberd, x => this.halberd = new DisableAbility(x) }, }; this.MoveComboAbilities.Add(AbilityId.phoenix_icarus_dive, _ => this.dive); }
void Spawn(int angle) { SunRay ray = Instantiate(sunRay); ray.targetIce = targetIce; ray.targetWater = targetWater; ray.waterTarget = waterTarget; ray.targetTree = targetTree; for (int i = 0; i < tempIceParent.transform.childCount; i++) { ray.iceTargets.Add(tempIceParent.transform.GetChild(i).gameObject); } for (int i = 0; i < tempTreeParent.transform.childCount; i++) { ray.treeTargets.Add(tempTreeParent.transform.GetChild(i).gameObject); } ray.transform.position = gameObject.transform.position; ray.transform.eulerAngles = new Vector3(0f, 0f, (float)angle); }
// Use this for initialization void Start() { sun = GameObject.Find("Sun2"); sunRay = sun.GetComponent <SunRay>(); }