public void Activate() { skill = false; motor.lockOn = false; target = motor.lockonTarget.GetComponent <TargetObj>(); target.GetComponent <TommyBoom> ().Boom(); }
public override void Update() { if (TargetObj != null && TargetObj.GetComponent <Vive_Pickup>() != null && TargetObj.GetComponent <Vive_Pickup>().Get_Controller() != null) { condition = TargetObj.GetComponent <Vive_Pickup>().Get_Controller().triggerPressed; } base.Update(); }
public override void StickExit() { TargetObj.GetComponent <Vive_Pickup>().enabled = true; TargetObj.GetComponent <Rigidbody>().detectCollisions = true; base.StickExit(); }
public void C_Select() { TargetObj.GetComponent <Target_Obj_Switch>().SwitchSelect(myID); }