// 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; }
public override void StartInteract(HookBehaviour interactor) { if (m_hit) { return; } m_timer = m_interactionExplosionDelay; m_hit = true; }
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; }
void Start() { m_rigidbody = GetComponent <Rigidbody2D>(); m_hookBehaviour = GetComponent <HookBehaviour>(); }
public abstract void StartInteract(HookBehaviour interactor);
void Start() { m_hookBehaviour = GetComponent <HookBehaviour>(); }