예제 #1
0
        public override void Initialize()
        {
            hc = gs.GetComponent <HammerComponent>();

            hc.prev_hammer_cocked = 1f;
            hc.hammer_cocked      = 1f;
        }
예제 #2
0
        public override void Initialize()
        {
            hc  = gs.GetComponent <HammerComponent>();
            hvc = gs.GetComponent <HammerVisualComponent>();

            hvc.hammer_rel_pos = hvc.hammer.localPosition;
            hvc.hammer_rel_rot = hvc.hammer.localRotation;
        }
예제 #3
0
        public override void Initialize()
        {
            yc = gs.GetComponent <YokeComponent>();
            hc = gs.GetComponent <HammerComponent>();

            if (yc.open_yoke_blocks_hammer)
            {
                hc.is_blocked_predicates.Add(() => yc.yoke_stage != YokeStage.CLOSED);
            }
        }
예제 #4
0
 public override void Initialize()
 {
     hc = gs.GetComponent <HammerComponent>();
 }