Beispiel #1
0
 private void OnTriggerEnter2D(Collider2D trigger)
 {
     if (trigger.tag == PlayerBehaviour.kPlayerTag && trigger.isTrigger)
     {
         ActionPerformer.Instance.SetAction(ActionsInitialiser.GetActionByID("action.id.container"), gameObject);
     }
 }
Beispiel #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");
 }
Beispiel #3
0
 void Start()
 {
     _dialogueAction = ActionsInitialiser.GetActionByID("action.id.dialogue");
     DialogueDisplayer.StartedDialogue += OnDialogueStarted;
 }
Beispiel #4
0
 // Use this for initialization
 void Start()
 {
     _action = ActionsInitialiser.GetActionByID(kOpenDoorActionId);
 }
Beispiel #5
0
 private void Start()
 {
     _vendorAction = ActionsInitialiser.GetActionByID("action.id.trade");
 }
Beispiel #6
0
 void Start()
 {
     _action = ActionsInitialiser.GetActionByID(kHideAction);
 }
Beispiel #7
0
 void Start()
 {
     _dialogueAction = ActionsInitialiser.GetActionByID("action.id.dialogue");
 }