示例#1
0
    // This is called when we're hooked by a player
    public void Attach(HookBehaviour hook)
    {
        this.hook = hook;
        Debug.Log("Attach");
        var emission = particle.emission;

        emission.enabled = false;
    }
示例#2
0
    public override void StartInteract(HookBehaviour interactor)
    {
        if (m_hit)
        {
            return;
        }

        m_timer = m_interactionExplosionDelay;
        m_hit   = true;
    }
示例#3
0
        public GlobalBindController(Keys bindKey, BindMethod method, HookBehaviour behaviour, List <KeyValuePair <GBC_KeyModifier, Action> > modifiers)
        {
            key             = bindKey;
            Method          = method;
            Behaviour       = behaviour;
            Execute         = false;
            ptrHookKey      = IntPtr.Zero;
            ptrHookModKey   = IntPtr.Zero;
            shiftDetected   = false;
            controlDetected = false;
            altDetected     = false;
            tasks           = modifiers;
            bindFunctions   = CreateBindActions(tasks);

            functionSuccessful = false;
        }
示例#4
0
 void Start()
 {
     m_rigidbody     = GetComponent <Rigidbody2D>();
     m_hookBehaviour = GetComponent <HookBehaviour>();
 }
示例#5
0
 public abstract void StartInteract(HookBehaviour interactor);
示例#6
0
 void Start()
 {
     m_hookBehaviour = GetComponent <HookBehaviour>();
 }