Exemplo n.º 1
0
 protected virtual void Start()
 {
     if (InGameManager.IsInGameScene())
     {
         ActivateCheck();
     }
 }
Exemplo n.º 2
0
 protected virtual void OnEnable()
 {
     if (InGameManager.IsInGameScene())
     {
         Teleport(new Position((int)Mathf.Round(transform.position.x), (int)Mathf.Round(transform.position.y)));
     }
 }
Exemplo n.º 3
0
 protected override void Start()
 {
     base.Start();
     if (InGameManager.IsInGameScene())
     {
         SetSprite();
     }
 }
Exemplo n.º 4
0
 public override void Teleport(Position des)
 {
     base.Teleport(des);
     if (InGameManager.IsInGameScene())
     {
         MapManager.instance.ResizeSideLasers(currentPos);
     }
 }
Exemplo n.º 5
0
 protected override void Start()
 {
     base.Start();
     if (InGameManager.IsInGameScene())
     {
         MakeLaser();
     }
 }
Exemplo n.º 6
0
 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)));
     }
 }
Exemplo n.º 7
0
 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;
     }
 }
Exemplo n.º 8
0
 protected override void Deactivate()
 {
     base.Deactivate();
     if (myWall != null)
     {
         myWall.Sink();
         if (InGameManager.IsInGameScene())
         {
             MapManager.instance.ResizeSideLasers(currentPos);
         }
     }
 }
Exemplo n.º 9
0
    protected override void Awake()
    {
        base.Awake();
        if (instance == null)
        {
            instance = this;
        }

        if (InGameManager.IsInGameScene())
        {
            Scheduler.instance.InputTimeStart += new Scheduler.voidFunc(MoveOrderDequeue);
        }
    }
Exemplo n.º 10
0
 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;
     }
 }