Exemplo n.º 1
0
 private void OnTriggerEnter2D(Collider2D trigger)
 {
     if (trigger.tag == PlayerBehaviour.kPlayerTag && trigger.isTrigger)
     {
         ActionPerformer.Instance.SetAction(ActionsInitialiser.GetActionByID("action.id.container"), gameObject);
     }
 }
Exemplo n.º 2
0
 void Start()
 {
     _joint                       = GetComponent <HingeJoint2D>();
     _selfRigidbody2D             = GetComponent <Rigidbody2D>();
     _selfRigidbody2D.isKinematic = true;
     _dragActionBase              = ActionsInitialiser.GetActionByID("action.id.drag");
     _undragActionBase            = ActionsInitialiser.GetActionByID("action.id.undrag");
 }
Exemplo n.º 3
0
 void Start()
 {
     _dialogueAction = ActionsInitialiser.GetActionByID("action.id.dialogue");
     DialogueDisplayer.StartedDialogue += OnDialogueStarted;
 }
Exemplo n.º 4
0
 // Use this for initialization
 void Start()
 {
     _action = ActionsInitialiser.GetActionByID(kOpenDoorActionId);
 }
Exemplo n.º 5
0
 private void Start()
 {
     _vendorAction = ActionsInitialiser.GetActionByID("action.id.trade");
 }
Exemplo n.º 6
0
 void Start()
 {
     _action = ActionsInitialiser.GetActionByID(kHideAction);
 }
Exemplo n.º 7
0
 void Start()
 {
     _dialogueAction = ActionsInitialiser.GetActionByID("action.id.dialogue");
 }