protected virtual void Start() { if (InGameManager.IsInGameScene()) { ActivateCheck(); } }
protected virtual void OnEnable() { if (InGameManager.IsInGameScene()) { Teleport(new Position((int)Mathf.Round(transform.position.x), (int)Mathf.Round(transform.position.y))); } }
protected override void Start() { base.Start(); if (InGameManager.IsInGameScene()) { SetSprite(); } }
public override void Teleport(Position des) { base.Teleport(des); if (InGameManager.IsInGameScene()) { MapManager.instance.ResizeSideLasers(currentPos); } }
protected override void Start() { base.Start(); if (InGameManager.IsInGameScene()) { MakeLaser(); } }
private void SetStageInfoUI() { if (InGameManager.IsInGameScene()) { GameObject.Find("Title").GetComponent <TextFader>().SetText(title); GameObject.Find("Chapter").GetComponent <TextFader>(). SetText(("Stage " + RomanNumber.Roman(InGameManager.instance.StageIndex + 1))); } }
protected override void Awake() { base.Awake(); stepPriority = 1; if (InGameManager.IsInGameScene()) { myWall = Instantiate(Resources.Load <MakedWall>("Prefab/InGameObject/MakedWall"), transform.position, Quaternion.identity, transform.parent); myWall.MyFloor = this; } }
protected override void Deactivate() { base.Deactivate(); if (myWall != null) { myWall.Sink(); if (InGameManager.IsInGameScene()) { MapManager.instance.ResizeSideLasers(currentPos); } } }
protected override void Awake() { base.Awake(); if (instance == null) { instance = this; } if (InGameManager.IsInGameScene()) { Scheduler.instance.InputTimeStart += new Scheduler.voidFunc(MoveOrderDequeue); } }
public virtual void SetSortingOrder() { if (InGameManager.IsInGameScene()) { if (transform.Find("Sprite") != null) { transform.Find("Sprite").GetComponent <SpriteRenderer>().sortingOrder = -currentPos.Y * 10; } } else { transform.Find("Sprite").GetComponent <SpriteRenderer>().sortingOrder = -(int)transform.position.y * 10; } }