void Start() { if (Stitch.fanStatus[1]) fan = GameObject.Find("Fan").GetComponent<Fan_Base>(); if (Game.Instance.Entrance && Game.Instance.Entrance.entranceID == 0) { Mouse_Base mouse = Game.Create("Mouse", new Vector3(1712, 224, 0)) as Mouse_Base; mouse.runAway = true; } }
void Start() { floor = transform.Find("Floor").GetComponent<Ferr2DT_PathTerrain>(); blackness = transform.Find("BlacknessFade").GetComponent<Ferr2DT_PathTerrain>(); if (Stitch.fanStatus[0]) { fan = GameObject.Find("Fan").GetComponent<Fan_Base>(); Mouse_Base m = Game.Create("Mouse", new Vector3(1700, 32, 0)) as Mouse_Base; m.runAway = true; } }
protected override void FanCollision(Fan_Base other) { if (Kat.Is("Punching") && Kat.x > other.Mask.Right - 20 && Kat.Sprite.FacingRight) { if ((other.LastAttackID != (Base.Sprite as Kat_Sprite).AttackID)) { other.LastAttackID = (Base.Sprite as Kat_Sprite).AttackID; other.GetHurt(); if (Base.Sprite.FacingRight) Stitch.CreateHit(new Vector3(Base.Mask.Right + 10, Base.Mask.Center.y, Base.z)); else Stitch.CreateHit(new Vector3(Base.Mask.Left - 10, Base.Mask.Center.y, Base.z)); Base.Physics.hspeed = 0; Game.FreezeFor(0.1f); return; } } if (!Kat.Is("Punching")) Base.x += other.power; }