Esempio n. 1
0
    public void ReActivateLink()
    {
        SwitchSpriteController.SwitchSprite();

        switch (pair.TargetNetworkDirection)
        {
        case NetworkDirection.Up:
            pair.Source.TargetNodeUp        = pair.Destination;
            pair.Destination.TargetNodeDown = pair.Source;
            LinkToRepair.SetActive(false);
            break;

        case NetworkDirection.Down:
            pair.Source.TargetNodeDown    = pair.Destination;
            pair.Destination.TargetNodeUp = pair.Source;
            LinkToRepair.SetActive(false);
            break;

        case NetworkDirection.Left:
            pair.Source.TargetNodeLeft       = pair.Destination;
            pair.Destination.TargetNodeRight = pair.Source;
            LinkToRepair.SetActive(false);
            break;

        case NetworkDirection.Right:
            pair.Source.TargetNodeRight     = pair.Destination;
            pair.Destination.TargetNodeLeft = pair.Source;
            LinkToRepair.SetActive(false);
            break;

        default:
            throw new ArgumentOutOfRangeException();
        }
    }
Esempio n. 2
0
 public void Capture()
 {
     _character.Host();
     _switch.SwitchSprite();
     Destroy(Cat);
 }
Esempio n. 3
0
 public void ActivateTriggerAble()
 {
     Activate = true;
     SwitchSpriteController.SwitchSprite();
     Hack2SwitchSpriteController.SwitchSprite();
 }
Esempio n. 4
0
 public void StateOne()
 {
     toasterHeat.SetActive(true);
     SwitchSpriteController.SwitchSprite();
 }